We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de76d6 commit b4ef615Copy full SHA for b4ef615
packages/core/auth-js/src/GoTrueApi.ts
@@ -71,6 +71,19 @@ export default class GoTrueApi {
71
}
72
73
74
+ /**
75
+ * Sends an invite link to an email address.
76
+ * @param email The email address of the user.
77
+ */
78
+ async inviteUserByEmail(email: string): Promise<{ data: {} | null; error: Error | null }> {
79
+ try {
80
+ const data = await post(`${this.url}/invite`, { email }, { headers: this.headers })
81
+ return { data, error: null }
82
+ } catch (error) {
83
+ return { data: null, error }
84
+ }
85
86
+
87
/**
88
* Sends a reset request to an email address.
89
* @param email The email address of the user.
0 commit comments