Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into docs/dart

Paul Copplestone350d82d00d73
diff --cc web/package.json
index 54e42e1e240,a1775c8db6e..858b2260a3c
--- a/web/package.json
+++ b/web/package.json
@@@ -7,11 -7,7 +7,7 @@@
"build": "npm run gen:all && docusaurus build",
"swizzle": "docusaurus swizzle",
"traction": "node traction.js",
- "gen:all": "npm run gen:supabase && npm run gen:dart && npm run gen:gotrue && npm run gen:postgrest && npm run gen:realtime && npm run gen:postgres && npm run gen:cli",
- "gen:dart": "ts-node ReferenceGenerator.ts -o docs/reference/dart spec/dart.yml",
- "gen:gotrue": "ts-node ReferenceGenerator.ts -o docs/gotrue/client spec/gotrue.yml",
- "gen:postgrest": "ts-node ReferenceGenerator.ts -o docs/postgrest/client spec/postgrest.yml",
- "gen:realtime": "ts-node ReferenceGenerator.ts -o docs/realtime/client spec/realtime.yml",
- "gen:all": "npm run gen:supabase && npm run gen:postgres && npm run gen:cli",
++ "gen:all": "npm run gen:supabase && npm run gen:dart && npm run gen:postgres && npm run gen:cli",
"gen:supabase": "ts-node ReferenceGenerator.ts -o docs/reference/javascript spec/supabase.yml",
"gen:cli": "ts-node ReferenceGenerator.ts -o docs/reference/cli spec/cli.yml",
"gen:postgres": "ts-node ReferenceGenerator.ts -o docs/reference/postgres spec/postgres.yml"
diff --cc web/spec/combined.json
index 72aad79b910,bc90015fad6..561ca09186e
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@@ -11458,15 -11285,31 +11389,15 @@@
},
"parameters": [
{
- "id": 228,
- "id": 227,
-- "name": "email",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The email address of the user."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 228,
- "name": "password",
++ "id": 272,
++ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The email address of the user."
- "text": "The password of the user."
++ "text": "The user's phone number WITH international prefix\n"
},
"type": {
"type": "intrinsic",
@@@ -11566,7 -11393,7 +11481,7 @@@
{
"type": "reflection",
"declaration": {
- "id": 233,
- "id": 232,
++ "id": 273,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@@ -11575,7 -11402,7 +11490,7 @@@
},
"children": [
{
- "id": 234,
- "id": 233,
++ "id": 274,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@@ -11593,9 -11420,9 +11508,23 @@@
"type": "union",
"types": [
{
-- "type": "reference",
-- "id": 50,
-- "name": "Session"
++ "type": "reflection",
++ "declaration": {
++ "id": 275,
++ "name": "__type",
++ "kind": 65536,
++ "kindString": "Type literal",
++ "flags": {
++ "isExported": true
++ },
++ "sources": [
++ {
++ "fileName": "GoTrueApi.ts",
++ "line": 158,
++ "character": 53
++ }
++ ]
++ }
},
{
"type": "reference",
@@@ -11610,7 -11437,7 +11539,7 @@@
}
},
{
- "id": 235,
- "id": 234,
++ "id": 276,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@@ -11644,173 -11471,173 +11573,465 @@@
"title": "Variables",
"kind": 32,
"children": [
- 234,
- 235
- 233,
- 234
++ 274,
++ 276
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
- "line": 45,
- "character": 13
++ "line": 158,
++ "character": 46
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
- "line": 39,
- "character": 23
++ "line": 158,
++ "character": 21
+ }
+ ]
+ },
+ {
- "id": 246,
- "name": "signUpWithPhone",
++ "id": 351,
++ "name": "setAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
- "id": 247,
- "name": "signUpWithPhone",
++ "id": 352,
++ "name": "setAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
- "shortText": "Signs up a new user using their phone number and a password."
++ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
- "id": 248,
- "name": "phone",
++ "id": 353,
++ "name": "req",
++ "kind": 32768,
++ "kindString": "Parameter",
++ "flags": {
++ "isExported": true
++ },
++ "type": {
++ "type": "intrinsic",
++ "name": "any"
++ }
++ },
++ {
++ "id": 354,
++ "name": "res",
++ "kind": 32768,
++ "kindString": "Parameter",
++ "flags": {
++ "isExported": true
++ },
++ "type": {
++ "type": "intrinsic",
++ "name": "any"
++ }
++ }
++ ],
++ "type": {
++ "type": "intrinsic",
++ "name": "void"
++ }
++ }
++ ],
++ "sources": [
++ {
++ "fileName": "GoTrueApi.ts",
++ "line": 375,
++ "character": 15
++ }
++ ]
++ },
++ {
++ "id": 236,
++ "name": "signInWithEmail",
++ "kind": 2048,
++ "kindString": "Method",
++ "flags": {
++ "isExported": true
++ },
++ "signatures": [
++ {
++ "id": 237,
++ "name": "signInWithEmail",
++ "kind": 4096,
++ "kindString": "Call signature",
++ "flags": {
++ "isExported": true
++ },
++ "comment": {
++ "shortText": "Logs in an existing user using their email address."
++ },
++ "parameters": [
++ {
++ "id": 238,
++ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
- "text": "The phone number of the user."
++ "text": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
- "id": 249,
++ "id": 239,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
- "text": "The password of the user.\n"
++ "text": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
++ },
++ {
++ "id": 240,
++ "name": "options",
++ "kind": 32768,
++ "kindString": "Parameter",
++ "flags": {
++ "isExported": true
++ },
++ "type": {
++ "type": "reflection",
++ "declaration": {
++ "id": 241,
++ "name": "__type",
++ "kind": 65536,
++ "kindString": "Type literal",
++ "flags": {
++ "isExported": true
++ },
++ "children": [
++ {
++ "id": 242,
++ "name": "redirectTo",
++ "kind": 32,
++ "kindString": "Variable",
++ "flags": {
++ "isExported": true,
++ "isOptional": true
++ },
++ "sources": [
++ {
++ "fileName": "GoTrueApi.ts",
++ "line": 71,
++ "character": 16
++ }
++ ],
++ "type": {
++ "type": "union",
++ "types": [
++ {
++ "type": "intrinsic",
++ "name": "undefined"
++ },
++ {
++ "type": "intrinsic",
++ "name": "string"
++ }
++ ]
++ }
++ }
++ ],
++ "groups": [
++ {
++ "title": "Variables",
++ "kind": 32,
++ "children": [
++ 242
++ ]
++ }
++ ],
++ "sources": [
++ {
++ "fileName": "GoTrueApi.ts",
++ "line": 70,
++ "character": 12
++ }
++ ]
++ }
++ },
++ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
- "id": 250,
++ "id": 243,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
- "id": 251,
++ "id": 244,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
- "line": 97,
++ "line": 73,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
- {
- "type": "reference",
- "id": 58,
- "name": "User"
- },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
- "id": 252,
++ "id": 245,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
- "line": 97,
- "character": 49
++ "line": 73,
++ "character": 42
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
- 251,
- 252
++ 244,
++ 245
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 45,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 39,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 245,
+ "name": "signUpWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 246,
+ "name": "signUpWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Signs up a new user using their phone number and a password."
+ },
+ "parameters": [
+ {
+ "id": 247,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 248,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 249,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 250,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 251,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 250,
+ 251
]
}
],
@@@ -12028,240 -11855,240 +12249,475 @@@
}
]
},
+ {
+ "id": 276,
+ "name": "verifyMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 277,
+ "name": "verifyMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Send User supplied Mobile OTP to be verified"
+ },
+ "parameters": [
+ {
+ "id": 278,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 279,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "token that user was sent to their mobile phone"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 280,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 281,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 282,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 178,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 282
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 177,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 283,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 284,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 285,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 284,
+ 285
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 174,
+ "character": 23
+ }
+ ]
++ },
+ {
+ "id": 277,
+ "name": "verifyMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 278,
+ "name": "verifyMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Send User supplied Mobile OTP to be verified"
+ },
+ "parameters": [
+ {
+ "id": 279,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 280,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "token that user was sent to their mobile phone"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 281,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 282,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 283,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 178,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 283
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 177,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 284,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 285,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 286,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 285,
+ 286
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 174,
+ "character": 23
+ }
+ ]
}
],
"groups": [
@@@ -16579,407 -16803,10 +17432,362 @@@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 306,
- "character": 14
- }
- ]
- },
- {
- "id": 450,
- "name": "user",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 451,
- "name": "user",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.",
- "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n"
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 271,
- "character": 6
+ "line": 222,
+ "character": 17
}
]
+ },
+ {
+ "id": 436,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 437,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 438,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 439,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 440,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 223,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 441,
+ "name": "token",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 223,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 440,
+ 441
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 222,
+ "character": 18
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 442,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 444,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 225,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 444
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 224,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 445,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 449,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 231,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 448,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 230,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 447,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 229,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 446,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 228,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 449,
+ 448,
+ 447,
+ 446
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 227,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 222,
+ "character": 17
+ }
+ ]
}
],
"groups": [
@@@ -21366,6 -21212,6 +22193,88 @@@
}
]
}
++ },
++ {
++ "id": 105,
++ "name": "phone",
++ "kind": 1024,
++ "kindString": "Property",
++ "flags": {
++ "isExported": true,
++ "isOptional": true
++ },
++ "sources": [
++ {
++ "fileName": "lib/types.ts",
++ "line": 108,
++ "character": 7
++ }
++ ],
++ "type": {
++ "type": "union",
++ "types": [
++ {
++ "type": "intrinsic",
++ "name": "undefined"
++ },
++ {
++ "type": "intrinsic",
++ "name": "string"
++ }
++ ]
++ }
++ },
++ {
++ "id": 108,
++ "name": "provider",
++ "kind": 1024,
++ "kindString": "Property",
++ "flags": {
++ "isExported": true,
++ "isOptional": true
++ },
++ "sources": [
++ {
++ "fileName": "lib/types.ts",
++ "line": 112,
++ "character": 10
++ }
++ ],
++ "type": {
++ "type": "reference",
++ "id": 112,
++ "name": "Provider"
++ }
++ },
++ {
++ "id": 107,
++ "name": "refreshToken",
++ "kind": 1024,
++ "kindString": "Property",
++ "flags": {
++ "isExported": true,
++ "isOptional": true
++ },
++ "sources": [
++ {
++ "fileName": "lib/types.ts",
++ "line": 110,
++ "character": 14
++ }
++ ],
++ "type": {
++ "type": "union",
++ "types": [
++ {
++ "type": "intrinsic",
++ "name": "undefined"
++ },
++ {
++ "type": "intrinsic",
++ "name": "string"
++ }
++ ]
++ }
}
],
"groups": [
@@@ -21403,8 -21249,8 +22312,7 @@@
"kind": 1024,
"kindString": "Property",
"flags": {
-- "isExported": true,
-- "isOptional": true
++ "isExported": true
},
"sources": [
{
@@@ -21515,8 -21361,8 +22423,7 @@@
"kind": 1024,
"kindString": "Property",
"flags": {
-- "isExported": true,
-- "isOptional": true
++ "isExported": true
},
"sources": [
{
@@@ -21526,17 -21372,17 +22433,8 @@@
}
],
"type": {
-- "type": "union",
-- "types": [
-- {
-- "type": "intrinsic",
-- "name": "undefined"
-- },
-- {
-- "type": "intrinsic",
-- "name": "string"
-- }
-- ]
++ "type": "intrinsic",
++ "name": "string"
}
}
],
@@@ -33796,11 -33509,10 +34694,11 @@@
}
}
]
- }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 214,
+ "id": 210,
"name": "heartbeatIntervalMs",
"kind": 1024,
"kindString": "Property",
@@@ -39129,16 -38781,16 +40027,19 @@@
"title": "Methods",
"kind": 2048,
"children": [
- 83,
- 85,
- 93,
- 87,
+ 79,
81,
+ 89,
+ 83,
+ 77,
+ 67,
+ 62,
+ 65,
71,
- 73
+ 66,
+ 69,
+ 75,
+ 77
]
}
],
diff --cc web/spec/realtime.json
index 6dd7a8be4ca,a204988b1d8..b2f7db256e1
--- a/web/spec/realtime.json
+++ b/web/spec/realtime.json
@@@ -277,11 -277,10 +277,11 @@@
}
}
]
- }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 214,
+ "id": 210,
"name": "heartbeatIntervalMs",
"kind": 1024,
"kindString": "Property",
@@@ -5610,16 -5549,16 +5610,19 @@@
"title": "Methods",
"kind": 2048,
"children": [
- 83,
- 85,
- 93,
- 87,
+ 79,
81,
+ 89,
+ 83,
+ 77,
+ 67,
+ 62,
+ 65,
71,
- 73
+ 66,
+ 69,
+ 75,
+ 77
]
}
],
diff --cc web/spec/supabase.json
index d214fc76b0b,b432d5c2790..73f5e715ee7
--- a/web/spec/supabase.json
+++ b/web/spec/supabase.json
@@@ -3187,14 -3089,14 +3119,43 @@@
]
}
},
+ {
+ "id": 73,
+ "name": "provider",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
++ "sources": [
++ {
++ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
++ "line": 68,
++ "character": 59
++ }
++ ],
++ "type": {
++ "type": "union",
++ "types": [
++ {
++ "type": "intrinsic",
++ "name": "undefined"
++ },
++ {
++ "type": "intrinsic",
++ "name": "string"
++ }
++ ]
++ }
++ },
+ {
+ "id": 75,
+ "name": "provider",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
"comment": {
"text": "One of the providers supported by GoTrue."
},
@@@ -4227,6 -4129,6 +4188,10 @@@
"type": {
"type": "union",
"types": [
++ {
++ "type": "reference",
++ "name": "Session"
++ },
{
"type": "reference",
"name": "User"