The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds the createUser function (#3925)
Copple0d09f8da9001
diff --git a/web/sidebar_spec_supabase.js b/web/sidebar_spec_supabase.jsindex 400d75a2d11..4637c61e7db 100644--- a/web/sidebar_spec_supabase.js+++ b/web/sidebar_spec_supabase.js@@ -15,7 +15,7 @@ module.exports = {{type: 'category',label: 'Auth (Server Only)',- items: ['reference/javascript/auth-api-deleteuser', 'reference/javascript/auth-api-generatelink', 'reference/javascript/auth-api-inviteuserbyemail', 'reference/javascript/auth-api-sendmobileotp', 'reference/javascript/auth-api-resetpasswordforemail'],+ items: ['reference/javascript/auth-api-createuser', 'reference/javascript/auth-api-deleteuser', 'reference/javascript/auth-api-generatelink', 'reference/javascript/auth-api-inviteuserbyemail', 'reference/javascript/auth-api-sendmobileotp', 'reference/javascript/auth-api-resetpasswordforemail'],collapsed: true,},{diff --git a/web/spec/combined.json b/web/spec/combined.jsonindex cc94cb87f9b..fe7d28e3745 100644--- a/web/spec/combined.json+++ b/web/spec/combined.json@@ -9,7 +9,7 @@"originalName": "","children": [{- "id": 293,+ "id": 297,"name": "\"SupabaseClient\"","kind": 1,"kindString": "Module",@@ -19,7 +19,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts","children": [{- "id": 294,+ "id": 298,"name": "SupabaseClient","kind": 128,"kindString": "Class",@@ -32,7 +32,7 @@},"children": [{- "id": 302,+ "id": 307,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -44,7 +44,7 @@},"signatures": [{- "id": 305,+ "id": 310,"name": "new SupabaseClient","kind": 16384,"kindString": "Constructor signature",@@ -56,7 +56,7 @@},"parameters": [{- "id": 306,+ "id": 311,"name": "supabaseUrl","kind": 32768,"kindString": "Parameter",@@ -72,7 +72,7 @@}},{- "id": 307,+ "id": 312,"name": "supabaseKey","kind": 32768,"kindString": "Parameter",@@ -88,7 +88,7 @@}},{- "id": 308,+ "id": 313,"name": "options","kind": 32768,"kindString": "Parameter",@@ -98,14 +98,14 @@},"type": {"type": "reference",- "id": 38,+ "id": 39,"name": "SupabaseClientOptions"}}],"type": {"type": "reference",- "id": 294,+ "id": 298,"name": "SupabaseClient"}}@@ -113,13 +113,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 34,- "character": 36+ "line": 35,+ "character": 25}]},{- "id": 295,+ "id": 299,"name": "auth","kind": 1024,"kindString": "Property",@@ -138,12 +138,12 @@],"type": {"type": "reference",- "id": 61,+ "id": 63,"name": "SupabaseAuthClient"}},{- "id": 299,+ "id": 303,"name": "authUrl","kind": 1024,"kindString": "Property",@@ -164,7 +164,30 @@}},{- "id": 301,+ "id": 306,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isExported": true,+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/SupabaseClient.ts",+ "line": 35,+ "character": 17+ }+ ],+ "type": {+ "type": "reference",+ "id": 37,+ "name": "Fetch"+ }+ },+ {+ "id": 305,"name": "realtime","kind": 1024,"kindString": "Property",@@ -185,7 +208,7 @@}},{- "id": 298,+ "id": 302,"name": "realtimeUrl","kind": 1024,"kindString": "Property",@@ -206,7 +229,7 @@}},{- "id": 297,+ "id": 301,"name": "restUrl","kind": 1024,"kindString": "Property",@@ -227,7 +250,7 @@}},{- "id": 296,+ "id": 300,"name": "schema","kind": 1024,"kindString": "Property",@@ -248,7 +271,7 @@}},{- "id": 300,+ "id": 304,"name": "storageUrl","kind": 1024,"kindString": "Property",@@ -269,7 +292,7 @@}},{- "id": 304,+ "id": 309,"name": "supabaseKey","kind": 1024,"kindString": "Property",@@ -284,7 +307,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 49,+ "line": 51,"character": 25}],@@ -294,7 +317,7 @@}},{- "id": 303,+ "id": 308,"name": "supabaseUrl","kind": 1024,"kindString": "Property",@@ -309,7 +332,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 48,+ "line": 50,"character": 25}],@@ -319,7 +342,7 @@}},{- "id": 309,+ "id": 314,"name": "storage","kind": 262144,"kindString": "Accessor",@@ -331,7 +354,7 @@},"getSignature": [{- "id": 310,+ "id": 315,"name": "__get","kind": 524288,"kindString": "Get signature",@@ -350,13 +373,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 76,+ "line": 80,"character": 13}]},{- "id": 354,+ "id": 359,"name": "_closeChannel","kind": 2048,"kindString": "Method",@@ -366,7 +389,7 @@},"signatures": [{- "id": 355,+ "id": 360,"name": "_closeChannel","kind": 4096,"kindString": "Call signature",@@ -375,7 +398,7 @@},"parameters": [{- "id": 356,+ "id": 361,"name": "subscription","kind": 32768,"kindString": "Parameter",@@ -403,13 +426,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 194,+ "line": 201,"character": 23}]},{- "id": 327,+ "id": 332,"name": "_closeSubscription","kind": 2048,"kindString": "Method",@@ -419,7 +442,7 @@},"signatures": [{- "id": 328,+ "id": 333,"name": "_closeSubscription","kind": 4096,"kindString": "Call signature",@@ -428,7 +451,7 @@},"parameters": [{- "id": 329,+ "id": 334,"name": "subscription","kind": 32768,"kindString": "Parameter",@@ -456,13 +479,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 138,+ "line": 143,"character": 34}]},{- "id": 349,+ "id": 354,"name": "_getAuthHeaders","kind": 2048,"kindString": "Method",@@ -472,7 +495,7 @@},"signatures": [{- "id": 350,+ "id": 355,"name": "_getAuthHeaders","kind": 4096,"kindString": "Call signature",@@ -482,7 +505,7 @@"type": {"type": "reflection","declaration": {- "id": 351,+ "id": 356,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -491,7 +514,7 @@},"indexSignature": [{- "id": 352,+ "id": 357,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -500,7 +523,7 @@},"parameters": [{- "id": 353,+ "id": 358,"name": "key","kind": 32768,"kindString": "Parameter",@@ -522,7 +545,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 186,+ "line": 193,"character": 28}]@@ -533,13 +556,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 186,+ "line": 193,"character": 25}]},{- "id": 347,+ "id": 352,"name": "_initPostgRESTClient","kind": 2048,"kindString": "Method",@@ -549,7 +572,7 @@},"signatures": [{- "id": 348,+ "id": 353,"name": "_initPostgRESTClient","kind": 4096,"kindString": "Call signature",@@ -565,13 +588,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 179,+ "line": 185,"character": 30}]},{- "id": 344,+ "id": 349,"name": "_initRealtimeClient","kind": 2048,"kindString": "Method",@@ -581,7 +604,7 @@},"signatures": [{- "id": 345,+ "id": 350,"name": "_initRealtimeClient","kind": 4096,"kindString": "Call signature",@@ -590,7 +613,7 @@},"parameters": [{- "id": 346,+ "id": 351,"name": "options","kind": 32768,"kindString": "Parameter",@@ -613,13 +636,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 172,+ "line": 178,"character": 29}]},{- "id": 332,+ "id": 337,"name": "_initSupabaseAuthClient","kind": 2048,"kindString": "Method",@@ -629,7 +652,7 @@},"signatures": [{- "id": 333,+ "id": 338,"name": "_initSupabaseAuthClient","kind": 4096,"kindString": "Call signature",@@ -638,7 +661,7 @@},"parameters": [{- "id": 334,+ "id": 339,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -649,7 +672,7 @@"type": {"type": "reflection","declaration": {- "id": 335,+ "id": 340,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -658,7 +681,7 @@},"children": [{- "id": 336,+ "id": 341,"name": "autoRefreshToken","kind": 32,"kindString": "Variable",@@ -668,7 +691,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 152,+ "line": 157,"character": 20}],@@ -691,7 +714,7 @@}},{- "id": 338,+ "id": 343,"name": "detectSessionInUrl","kind": 32,"kindString": "Variable",@@ -701,7 +724,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 154,+ "line": 159,"character": 22}],@@ -724,7 +747,7 @@}},{- "id": 340,+ "id": 345,"name": "headers","kind": 32,"kindString": "Variable",@@ -734,7 +757,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 156,+ "line": 161,"character": 11}],@@ -748,7 +771,7 @@{"type": "reflection","declaration": {- "id": 341,+ "id": 346,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -757,7 +780,7 @@},"indexSignature": [{- "id": 342,+ "id": 347,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -766,7 +789,7 @@},"parameters": [{- "id": 343,+ "id": 348,"name": "key","kind": 32768,"kindString": "Parameter",@@ -791,7 +814,7 @@}},{- "id": 339,+ "id": 344,"name": "localStorage","kind": 32,"kindString": "Variable",@@ -801,7 +824,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 155,+ "line": 160,"character": 16}],@@ -849,7 +872,7 @@}},{- "id": 337,+ "id": 342,"name": "persistSession","kind": 32,"kindString": "Variable",@@ -859,7 +882,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 153,+ "line": 158,"character": 18}],@@ -887,18 +910,18 @@"title": "Variables","kind": 32,"children": [- 336,- 338,- 340,- 339,- 337+ 341,+ 343,+ 345,+ 344,+ 342]}],"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 151,+ "line": 156,"character": 34}]@@ -908,7 +931,7 @@],"type": {"type": "reference",- "id": 61,+ "id": 63,"name": "SupabaseAuthClient"}}@@ -916,13 +939,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 151,+ "line": 156,"character": 33}]},{- "id": 311,+ "id": 316,"name": "from","kind": 2048,"kindString": "Method",@@ -931,7 +954,7 @@},"signatures": [{- "id": 312,+ "id": 317,"name": "from","kind": 4096,"kindString": "Call signature",@@ -943,7 +966,7 @@},"typeParameter": [{- "id": 313,+ "id": 318,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -954,7 +977,7 @@],"parameters": [{- "id": 314,+ "id": 319,"name": "table","kind": 32768,"kindString": "Parameter",@@ -972,7 +995,7 @@],"type": {"type": "reference",- "id": 202,+ "id": 204,"typeArguments": [{"type": "typeParameter",@@ -990,13 +1013,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 85,+ "line": 89,"character": 6}]},{- "id": 330,+ "id": 335,"name": "getSubscriptions","kind": 2048,"kindString": "Method",@@ -1005,7 +1028,7 @@},"signatures": [{- "id": 331,+ "id": 336,"name": "getSubscriptions","kind": 4096,"kindString": "Call signature",@@ -1027,13 +1050,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 147,+ "line": 152,"character": 18}]},{- "id": 324,+ "id": 329,"name": "removeSubscription","kind": 2048,"kindString": "Method",@@ -1042,7 +1065,7 @@},"signatures": [{- "id": 325,+ "id": 330,"name": "removeSubscription","kind": 4096,"kindString": "Call signature",@@ -1054,7 +1077,7 @@},"parameters": [{- "id": 326,+ "id": 331,"name": "subscription","kind": 32768,"kindString": "Parameter",@@ -1085,13 +1108,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 121,+ "line": 126,"character": 20}]},{- "id": 315,+ "id": 320,"name": "rpc","kind": 2048,"kindString": "Method",@@ -1100,7 +1123,7 @@},"signatures": [{- "id": 316,+ "id": 321,"name": "rpc","kind": 4096,"kindString": "Call signature",@@ -1112,7 +1135,7 @@},"typeParameter": [{- "id": 317,+ "id": 322,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -1123,7 +1146,7 @@],"parameters": [{- "id": 318,+ "id": 323,"name": "fn","kind": 32768,"kindString": "Parameter",@@ -1139,7 +1162,7 @@}},{- "id": 319,+ "id": 324,"name": "params","kind": 32768,"kindString": "Parameter",@@ -1165,7 +1188,7 @@}},{- "id": 320,+ "id": 325,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -1176,7 +1199,7 @@"type": {"type": "reflection","declaration": {- "id": 321,+ "id": 326,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -1185,7 +1208,7 @@},"children": [{- "id": 323,+ "id": 328,"name": "count","kind": 32,"kindString": "Variable",@@ -1198,7 +1221,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 109,+ "line": 114,"character": 11}],@@ -1226,7 +1249,7 @@"defaultValue": "null"},{- "id": 322,+ "id": 327,"name": "head","kind": 32,"kindString": "Variable",@@ -1239,7 +1262,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 108,+ "line": 113,"character": 10}],@@ -1255,15 +1278,15 @@"title": "Variables","kind": 32,"children": [- 323,- 322+ 328,+ 327]}],"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 106,+ "line": 111,"character": 20}]@@ -1287,7 +1310,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 104,+ "line": 109,"character": 5}]@@ -1298,45 +1321,46 @@"title": "Constructors","kind": 512,"children": [- 302+ 307]},{"title": "Properties","kind": 1024,"children": [- 295,299,+ 303,+ 306,+ 305,+ 302,301,- 298,- 297,- 296,300,304,- 303+ 309,+ 308]},{"title": "Accessors","kind": 262144,"children": [- 309+ 314]},{"title": "Methods","kind": 2048,"children": [+ 359,+ 332,354,- 327,+ 352,349,- 347,- 344,- 332,- 311,- 330,- 324,- 315+ 337,+ 316,+ 335,+ 329,+ 320]}],@@ -1349,7 +1373,7 @@]},{- "id": 357,+ "id": 362,"name": "DEFAULT_OPTIONS","kind": 2097152,"kindString": "Object literal",@@ -1358,7 +1382,7 @@},"children": [{- "id": 359,+ "id": 364,"name": "autoRefreshToken","kind": 32,"kindString": "Variable",@@ -1377,7 +1401,7 @@"defaultValue": "true"},{- "id": 361,+ "id": 366,"name": "detectSessionInUrl","kind": 32,"kindString": "Variable",@@ -1396,7 +1420,7 @@"defaultValue": "true"},{- "id": 362,+ "id": 367,"name": "headers","kind": 32,"kindString": "Variable",@@ -1411,14 +1435,14 @@"type": {"type": "reflection","declaration": {- "id": 363,+ "id": 368,"name": "__type","kind": 65536,"kindString": "Type literal","flags": {},"children": [{- "id": 364,+ "id": 369,"name": "X-Client-Info","kind": 32,"kindString": "Variable",@@ -1442,7 +1466,7 @@"title": "Variables","kind": 32,"children": [- 364+ 369]}]@@ -1451,7 +1475,7 @@"defaultValue": "DEFAULT_HEADERS"},{- "id": 360,+ "id": 365,"name": "persistSession","kind": 32,"kindString": "Variable",@@ -1470,7 +1494,7 @@"defaultValue": "true"},{- "id": 358,+ "id": 363,"name": "schema","kind": 32,"kindString": "Variable",@@ -1494,11 +1518,11 @@"title": "Variables","kind": 32,"children": [- 359,- 361,- 362,- 360,- 358+ 364,+ 366,+ 367,+ 365,+ 363]}],@@ -1520,14 +1544,14 @@"title": "Classes","kind": 128,"children": [- 294+ 298]},{"title": "Object literals","kind": 2097152,"children": [- 357+ 362]}],@@ -1540,7 +1564,7 @@]},{- "id": 365,+ "id": 370,"name": "\"index\"","kind": 1,"kindString": "Module",@@ -1550,7 +1574,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts","children": [{- "id": 366,+ "id": 371,"name": "createClient","kind": 64,"kindString": "Function",@@ -1563,7 +1587,7 @@},"signatures": [{- "id": 367,+ "id": 372,"name": "createClient","kind": 4096,"kindString": "Call signature",@@ -1575,7 +1599,7 @@},"parameters": [{- "id": 368,+ "id": 373,"name": "supabaseUrl","kind": 32768,"kindString": "Parameter",@@ -1588,7 +1612,7 @@}},{- "id": 369,+ "id": 374,"name": "supabaseKey","kind": 32768,"kindString": "Parameter",@@ -1601,7 +1625,7 @@}},{- "id": 370,+ "id": 375,"name": "options","kind": 32768,"kindString": "Parameter",@@ -1611,14 +1635,14 @@},"type": {"type": "reference",- "id": 38,+ "id": 39,"name": "SupabaseClientOptions"}}],"type": {"type": "reference",- "id": 294,+ "id": 298,"name": "SupabaseClient"}}@@ -1637,7 +1661,7 @@"title": "Functions","kind": 64,"children": [- 366+ 371]}],@@ -1650,7 +1674,7 @@]},{- "id": 60,+ "id": 62,"name": "\"lib/SupabaseAuthClient\"","kind": 1,"kindString": "Module",@@ -1660,7 +1684,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseAuthClient.ts","children": [{- "id": 61,+ "id": 63,"name": "SupabaseAuthClient","kind": 128,"kindString": "Class",@@ -1669,7 +1693,7 @@},"children": [{- "id": 62,+ "id": 64,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -1678,7 +1702,7 @@},"signatures": [{- "id": 63,+ "id": 65,"name": "new SupabaseAuthClient","kind": 16384,"kindString": "Constructor signature",@@ -1687,7 +1711,7 @@},"parameters": [{- "id": 64,+ "id": 66,"name": "options","kind": 32768,"kindString": "Parameter",@@ -1703,7 +1727,7 @@],"type": {"type": "reference",- "id": 61,+ "id": 63,"name": "SupabaseAuthClient"},"overwrites": {@@ -1725,7 +1749,7 @@}},{- "id": 65,+ "id": 67,"name": "api","kind": 1024,"kindString": "Property",@@ -1748,12 +1772,12 @@},"inheritedFrom": {"type": "reference",- "id": 65,+ "id": 67,"name": "GoTrueClient.api"}},{- "id": 68,+ "id": 70,"name": "autoRefreshToken","kind": 1024,"kindString": "Property",@@ -1774,12 +1798,12 @@},"inheritedFrom": {"type": "reference",- "id": 68,+ "id": 70,"name": "GoTrueClient.autoRefreshToken"}},{- "id": 67,+ "id": 69,"name": "currentSession","kind": 1024,"kindString": "Property",@@ -1812,12 +1836,12 @@},"inheritedFrom": {"type": "reference",- "id": 67,+ "id": 69,"name": "GoTrueClient.currentSession"}},{- "id": 66,+ "id": 68,"name": "currentUser","kind": 1024,"kindString": "Property",@@ -1850,12 +1874,12 @@},"inheritedFrom": {"type": "reference",- "id": 66,+ "id": 68,"name": "GoTrueClient.currentUser"}},{- "id": 70,+ "id": 72,"name": "localStorage","kind": 1024,"kindString": "Property",@@ -1876,12 +1900,12 @@},"inheritedFrom": {"type": "reference",- "id": 70,+ "id": 72,"name": "GoTrueClient.localStorage"}},{- "id": 69,+ "id": 71,"name": "persistSession","kind": 1024,"kindString": "Property",@@ -1902,12 +1926,12 @@},"inheritedFrom": {"type": "reference",- "id": 69,+ "id": 71,"name": "GoTrueClient.persistSession"}},{- "id": 72,+ "id": 74,"name": "refreshTokenTimer","kind": 1024,"kindString": "Property",@@ -1938,12 +1962,12 @@},"inheritedFrom": {"type": "reference",- "id": 72,+ "id": 74,"name": "GoTrueClient.refreshTokenTimer"}},{- "id": 71,+ "id": 73,"name": "stateChangeEmitters","kind": 1024,"kindString": "Property",@@ -1974,12 +1998,12 @@},"inheritedFrom": {"type": "reference",- "id": 71,+ "id": 73,"name": "GoTrueClient.stateChangeEmitters"}},{- "id": 149,+ "id": 151,"name": "getSessionFromUrl","kind": 2048,"kindString": "Method",@@ -1988,7 +2012,7 @@},"signatures": [{- "id": 150,+ "id": 152,"name": "getSessionFromUrl","kind": 4096,"kindString": "Call signature",@@ -2000,7 +2024,7 @@},"parameters": [{- "id": 151,+ "id": 153,"name": "options","kind": 32768,"kindString": "Parameter",@@ -2018,7 +2042,7 @@{"type": "reflection","declaration": {- "id": 152,+ "id": 154,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2027,7 +2051,7 @@},"children": [{- "id": 153,+ "id": 155,"name": "storeSession","kind": 32,"kindString": "Variable",@@ -2069,7 +2093,7 @@"title": "Variables","kind": 32,"children": [- 153+ 155]}]@@ -2085,7 +2109,7 @@{"type": "reflection","declaration": {- "id": 154,+ "id": 156,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2094,7 +2118,7 @@},"children": [{- "id": 155,+ "id": 157,"name": "data","kind": 32,"kindString": "Variable",@@ -2123,7 +2147,7 @@}},{- "id": 156,+ "id": 158,"name": "error","kind": 32,"kindString": "Variable",@@ -2157,8 +2181,8 @@"title": "Variables","kind": 32,"children": [- 155,- 156+ 157,+ 158]}],@@ -2176,7 +2200,7 @@},"inheritedFrom": {"type": "reference",- "id": 149,+ "id": 151,"name": "GoTrueClient.getSessionFromUrl"}}@@ -2190,12 +2214,12 @@],"inheritedFrom": {"type": "reference",- "id": 149,+ "id": 151,"name": "GoTrueClient.getSessionFromUrl"}},{- "id": 161,+ "id": 163,"name": "onAuthStateChange","kind": 2048,"kindString": "Method",@@ -2204,7 +2228,7 @@},"signatures": [{- "id": 162,+ "id": 164,"name": "onAuthStateChange","kind": 4096,"kindString": "Call signature",@@ -2217,7 +2241,7 @@},"parameters": [{- "id": 163,+ "id": 165,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -2227,7 +2251,7 @@"type": {"type": "reflection","declaration": {- "id": 164,+ "id": 166,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2236,7 +2260,7 @@},"signatures": [{- "id": 165,+ "id": 167,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -2245,7 +2269,7 @@},"parameters": [{- "id": 166,+ "id": 168,"name": "event","kind": 32768,"kindString": "Parameter",@@ -2258,7 +2282,7 @@}},{- "id": 167,+ "id": 169,"name": "session","kind": 32768,"kindString": "Parameter",@@ -2300,7 +2324,7 @@"type": {"type": "reflection","declaration": {- "id": 168,+ "id": 170,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2309,7 +2333,7 @@},"children": [{- "id": 169,+ "id": 171,"name": "data","kind": 32,"kindString": "Variable",@@ -2338,7 +2362,7 @@}},{- "id": 170,+ "id": 172,"name": "error","kind": 32,"kindString": "Variable",@@ -2372,8 +2396,8 @@"title": "Variables","kind": 32,"children": [- 169,- 170+ 171,+ 172]}],@@ -2388,7 +2412,7 @@},"inheritedFrom": {"type": "reference",- "id": 161,+ "id": 163,"name": "GoTrueClient.onAuthStateChange"}}@@ -2402,12 +2426,12 @@],"inheritedFrom": {"type": "reference",- "id": 161,+ "id": 163,"name": "GoTrueClient.onAuthStateChange"}},{- "id": 127,+ "id": 129,"name": "refreshSession","kind": 2048,"kindString": "Method",@@ -2416,7 +2440,7 @@},"signatures": [{- "id": 128,+ "id": 130,"name": "refreshSession","kind": 4096,"kindString": "Call signature",@@ -2432,7 +2456,7 @@{"type": "reflection","declaration": {- "id": 129,+ "id": 131,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2441,7 +2465,7 @@},"children": [{- "id": 130,+ "id": 132,"name": "data","kind": 32,"kindString": "Variable",@@ -2470,7 +2494,7 @@}},{- "id": 132,+ "id": 134,"name": "error","kind": 32,"kindString": "Variable",@@ -2499,7 +2523,7 @@}},{- "id": 131,+ "id": 133,"name": "user","kind": 32,"kindString": "Variable",@@ -2533,9 +2557,9 @@"title": "Variables","kind": 32,"children": [- 130,132,- 131+ 134,+ 133]}],@@ -2553,7 +2577,7 @@},"inheritedFrom": {"type": "reference",- "id": 127,+ "id": 129,"name": "GoTrueClient.refreshSession"}}@@ -2567,12 +2591,12 @@],"inheritedFrom": {"type": "reference",- "id": 127,+ "id": 129,"name": "GoTrueClient.refreshSession"}},{- "id": 125,+ "id": 127,"name": "session","kind": 2048,"kindString": "Method",@@ -2581,7 +2605,7 @@},"signatures": [{- "id": 126,+ "id": 128,"name": "session","kind": 4096,"kindString": "Call signature",@@ -2606,7 +2630,7 @@},"inheritedFrom": {"type": "reference",- "id": 125,+ "id": 127,"name": "GoTrueClient.session"}}@@ -2620,12 +2644,12 @@],"inheritedFrom": {"type": "reference",- "id": 125,+ "id": 127,"name": "GoTrueClient.session"}},{- "id": 146,+ "id": 148,"name": "setAuth","kind": 2048,"kindString": "Method",@@ -2634,7 +2658,7 @@},"signatures": [{- "id": 147,+ "id": 149,"name": "setAuth","kind": 4096,"kindString": "Call signature",@@ -2646,7 +2670,7 @@},"parameters": [{- "id": 148,+ "id": 150,"name": "access_token","kind": 32768,"kindString": "Parameter",@@ -2668,7 +2692,7 @@},"inheritedFrom": {"type": "reference",- "id": 146,+ "id": 148,"name": "GoTrueClient.setAuth"}}@@ -2682,12 +2706,12 @@],"inheritedFrom": {"type": "reference",- "id": 146,+ "id": 148,"name": "GoTrueClient.setAuth"}},{- "id": 140,+ "id": 142,"name": "setSession","kind": 2048,"kindString": "Method",@@ -2696,7 +2720,7 @@},"signatures": [{- "id": 141,+ "id": 143,"name": "setSession","kind": 4096,"kindString": "Call signature",@@ -2708,7 +2732,7 @@},"parameters": [{- "id": 142,+ "id": 144,"name": "refresh_token","kind": 32768,"kindString": "Parameter",@@ -2730,7 +2754,7 @@{"type": "reflection","declaration": {- "id": 143,+ "id": 145,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2739,7 +2763,7 @@},"children": [{- "id": 145,+ "id": 147,"name": "error","kind": 32,"kindString": "Variable",@@ -2768,7 +2792,7 @@}},{- "id": 144,+ "id": 146,"name": "session","kind": 32,"kindString": "Variable",@@ -2802,8 +2826,8 @@"title": "Variables","kind": 32,"children": [- 145,- 144+ 147,+ 146]}],@@ -2821,7 +2845,7 @@},"inheritedFrom": {"type": "reference",- "id": 140,+ "id": 142,"name": "GoTrueClient.setSession"}}@@ -2835,12 +2859,12 @@],"inheritedFrom": {"type": "reference",- "id": 140,+ "id": 142,"name": "GoTrueClient.setSession"}},{- "id": 89,+ "id": 91,"name": "signIn","kind": 2048,"kindString": "Method",@@ -2849,7 +2873,7 @@},"signatures": [{- "id": 90,+ "id": 92,"name": "signIn","kind": 4096,"kindString": "Call signature",@@ -2861,7 +2885,7 @@},"parameters": [{- "id": 91,+ "id": 93,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -2872,7 +2896,7 @@"type": {"type": "reflection","declaration": {- "id": 92,+ "id": 94,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2881,7 +2905,7 @@},"children": [{- "id": 93,+ "id": 95,"name": "email","kind": 32,"kindString": "Variable",@@ -2913,7 +2937,7 @@}},{- "id": 95,+ "id": 97,"name": "password","kind": 32,"kindString": "Variable",@@ -2945,7 +2969,7 @@}},{- "id": 94,+ "id": 96,"name": "phone","kind": 32,"kindString": "Variable",@@ -2974,7 +2998,7 @@}},{- "id": 97,+ "id": 99,"name": "provider","kind": 32,"kindString": "Variable",@@ -3050,7 +3074,7 @@}},{- "id": 96,+ "id": 98,"name": "refreshToken","kind": 32,"kindString": "Variable",@@ -3087,11 +3111,11 @@"title": "Variables","kind": 32,"children": [- 93,95,- 94,97,- 96+ 96,+ 99,+ 98]}],@@ -3106,7 +3130,7 @@}},{- "id": 98,+ "id": 100,"name": "options","kind": 32768,"kindString": "Parameter",@@ -3124,7 +3148,7 @@{"type": "reflection","declaration": {- "id": 99,+ "id": 101,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3133,7 +3157,7 @@},"children": [{- "id": 100,+ "id": 102,"name": "redirectTo","kind": 32,"kindString": "Variable",@@ -3163,7 +3187,7 @@}},{- "id": 101,+ "id": 103,"name": "scopes","kind": 32,"kindString": "Variable",@@ -3198,8 +3222,8 @@"title": "Variables","kind": 32,"children": [- 100,- 101+ 102,+ 103]}]@@ -3215,7 +3239,7 @@{"type": "reflection","declaration": {- "id": 102,+ "id": 104,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3224,7 +3248,7 @@},"children": [{- "id": 108,+ "id": 110,"name": "data","kind": 32,"kindString": "Variable",@@ -3253,7 +3277,7 @@}},{- "id": 107,+ "id": 109,"name": "error","kind": 32,"kindString": "Variable",@@ -3282,7 +3306,7 @@}},{- "id": 105,+ "id": 107,"name": "provider","kind": 32,"kindString": "Variable",@@ -3303,7 +3327,7 @@}},{- "id": 103,+ "id": 105,"name": "session","kind": 32,"kindString": "Variable",@@ -3332,7 +3356,7 @@}},{- "id": 106,+ "id": 108,"name": "url","kind": 32,"kindString": "Variable",@@ -3362,7 +3386,7 @@}},{- "id": 104,+ "id": 106,"name": "user","kind": 32,"kindString": "Variable",@@ -3396,12 +3420,12 @@"title": "Variables","kind": 32,"children": [- 108,+ 110,+ 109,107,105,- 103,- 106,- 104+ 108,+ 106]}],@@ -3419,7 +3443,7 @@},"inheritedFrom": {"type": "reference",- "id": 89,+ "id": 91,"name": "GoTrueClient.signIn"}}@@ -3433,12 +3457,12 @@],"inheritedFrom": {"type": "reference",- "id": 89,+ "id": 91,"name": "GoTrueClient.signIn"}},{- "id": 157,+ "id": 159,"name": "signOut","kind": 2048,"kindString": "Method",@@ -3447,7 +3471,7 @@},"signatures": [{- "id": 158,+ "id": 160,"name": "signOut","kind": 4096,"kindString": "Call signature",@@ -3464,7 +3488,7 @@{"type": "reflection","declaration": {- "id": 159,+ "id": 161,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3473,7 +3497,7 @@},"children": [{- "id": 160,+ "id": 162,"name": "error","kind": 32,"kindString": "Variable",@@ -3507,7 +3531,7 @@"title": "Variables","kind": 32,"children": [- 160+ 162]}],@@ -3525,7 +3549,7 @@},"inheritedFrom": {"type": "reference",- "id": 157,+ "id": 159,"name": "GoTrueClient.signOut"}}@@ -3539,12 +3563,12 @@],"inheritedFrom": {"type": "reference",- "id": 157,+ "id": 159,"name": "GoTrueClient.signOut"}},{- "id": 73,+ "id": 75,"name": "signUp","kind": 2048,"kindString": "Method",@@ -3553,7 +3577,7 @@},"signatures": [{- "id": 74,+ "id": 76,"name": "signUp","kind": 4096,"kindString": "Call signature",@@ -3565,7 +3589,7 @@},"parameters": [{- "id": 75,+ "id": 77,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -3576,7 +3600,7 @@"type": {"type": "reflection","declaration": {- "id": 76,+ "id": 78,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3585,7 +3609,7 @@},"children": [{- "id": 77,+ "id": 79,"name": "email","kind": 32,"kindString": "Variable",@@ -3617,7 +3641,7 @@}},{- "id": 78,+ "id": 80,"name": "password","kind": 32,"kindString": "Variable",@@ -3649,7 +3673,7 @@}},{- "id": 79,+ "id": 81,"name": "phone","kind": 32,"kindString": "Variable",@@ -3686,9 +3710,9 @@"title": "Variables","kind": 32,"children": [- 77,- 78,- 79+ 79,+ 80,+ 81]}],@@ -3703,7 +3727,7 @@}},{- "id": 80,+ "id": 82,"name": "options","kind": 32768,"kindString": "Parameter",@@ -3721,7 +3745,7 @@{"type": "reflection","declaration": {- "id": 81,+ "id": 83,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3730,7 +3754,7 @@},"children": [{- "id": 83,+ "id": 85,"name": "data","kind": 32,"kindString": "Variable",@@ -3760,7 +3784,7 @@}},{- "id": 82,+ "id": 84,"name": "redirectTo","kind": 32,"kindString": "Variable",@@ -3795,8 +3819,8 @@"title": "Variables","kind": 32,"children": [- 83,- 82+ 85,+ 84]}]@@ -3812,7 +3836,7 @@{"type": "reflection","declaration": {- "id": 84,+ "id": 86,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3821,7 +3845,7 @@},"children": [{- "id": 88,+ "id": 90,"name": "data","kind": 32,"kindString": "Variable",@@ -3857,7 +3881,7 @@}},{- "id": 87,+ "id": 89,"name": "error","kind": 32,"kindString": "Variable",@@ -3886,7 +3910,7 @@}},{- "id": 86,+ "id": 88,"name": "session","kind": 32,"kindString": "Variable",@@ -3915,7 +3939,7 @@}},{- "id": 85,+ "id": 87,"name": "user","kind": 32,"kindString": "Variable",@@ -3949,10 +3973,10 @@"title": "Variables","kind": 32,"children": [+ 90,+ 89,88,- 87,- 86,- 85+ 87]}],@@ -3970,7 +3994,7 @@},"inheritedFrom": {"type": "reference",- "id": 73,+ "id": 75,"name": "GoTrueClient.signUp"}}@@ -3984,12 +4008,12 @@],"inheritedFrom": {"type": "reference",- "id": 73,+ "id": 75,"name": "GoTrueClient.signUp"}},{- "id": 133,+ "id": 135,"name": "update","kind": 2048,"kindString": "Method",@@ -3998,7 +4022,7 @@},"signatures": [{- "id": 134,+ "id": 136,"name": "update","kind": 4096,"kindString": "Call signature",@@ -4010,7 +4034,7 @@},"parameters": [{- "id": 135,+ "id": 137,"name": "attributes","kind": 32768,"kindString": "Parameter",@@ -4029,7 +4053,7 @@{"type": "reflection","declaration": {- "id": 136,+ "id": 138,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4038,7 +4062,7 @@},"children": [{- "id": 137,+ "id": 139,"name": "data","kind": 32,"kindString": "Variable",@@ -4067,7 +4091,7 @@}},{- "id": 139,+ "id": 141,"name": "error","kind": 32,"kindString": "Variable",@@ -4096,7 +4120,7 @@}},{- "id": 138,+ "id": 140,"name": "user","kind": 32,"kindString": "Variable",@@ -4130,9 +4154,9 @@"title": "Variables","kind": 32,"children": [- 137,139,- 138+ 141,+ 140]}],@@ -4150,7 +4174,7 @@},"inheritedFrom": {"type": "reference",- "id": 133,+ "id": 135,"name": "GoTrueClient.update"}}@@ -4164,12 +4188,12 @@],"inheritedFrom": {"type": "reference",- "id": 133,+ "id": 135,"name": "GoTrueClient.update"}},{- "id": 123,+ "id": 125,"name": "user","kind": 2048,"kindString": "Method",@@ -4178,7 +4202,7 @@},"signatures": [{- "id": 124,+ "id": 126,"name": "user","kind": 4096,"kindString": "Call signature",@@ -4204,7 +4228,7 @@},"inheritedFrom": {"type": "reference",- "id": 123,+ "id": 125,"name": "GoTrueClient.user"}}@@ -4218,12 +4242,12 @@],"inheritedFrom": {"type": "reference",- "id": 123,+ "id": 125,"name": "GoTrueClient.user"}},{- "id": 109,+ "id": 111,"name": "verifyOTP","kind": 2048,"kindString": "Method",@@ -4232,7 +4256,7 @@},"signatures": [{- "id": 110,+ "id": 112,"name": "verifyOTP","kind": 4096,"kindString": "Call signature",@@ -4244,7 +4268,7 @@},"parameters": [{- "id": 111,+ "id": 113,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -4255,7 +4279,7 @@"type": {"type": "reflection","declaration": {- "id": 112,+ "id": 114,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4264,7 +4288,7 @@},"children": [{- "id": 113,+ "id": 115,"name": "phone","kind": 32,"kindString": "Variable",@@ -4287,7 +4311,7 @@}},{- "id": 114,+ "id": 116,"name": "token","kind": 32,"kindString": "Variable",@@ -4315,8 +4339,8 @@"title": "Variables","kind": 32,"children": [- 113,- 114+ 115,+ 116]}],@@ -4331,7 +4355,7 @@}},{- "id": 115,+ "id": 117,"name": "options","kind": 32768,"kindString": "Parameter",@@ -4349,7 +4373,7 @@{"type": "reflection","declaration": {- "id": 116,+ "id": 118,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4358,7 +4382,7 @@},"children": [{- "id": 117,+ "id": 119,"name": "redirectTo","kind": 32,"kindString": "Variable",@@ -4393,7 +4417,7 @@"title": "Variables","kind": 32,"children": [- 117+ 119]}]@@ -4409,7 +4433,7 @@{"type": "reflection","declaration": {- "id": 118,+ "id": 120,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4418,7 +4442,7 @@},"children": [{- "id": 122,+ "id": 124,"name": "data","kind": 32,"kindString": "Variable",@@ -4451,7 +4475,7 @@}},{- "id": 121,+ "id": 123,"name": "error","kind": 32,"kindString": "Variable",@@ -4480,7 +4504,7 @@}},{- "id": 120,+ "id": 122,"name": "session","kind": 32,"kindString": "Variable",@@ -4509,7 +4533,7 @@}},{- "id": 119,+ "id": 121,"name": "user","kind": 32,"kindString": "Variable",@@ -4543,10 +4567,10 @@"title": "Variables","kind": 32,"children": [+ 124,+ 123,122,- 121,- 120,- 119+ 121]}],@@ -4564,7 +4588,7 @@},"inheritedFrom": {"type": "reference",- "id": 109,+ "id": 111,"name": "GoTrueClient.verifyOTP"}}@@ -4578,7 +4602,7 @@],"inheritedFrom": {"type": "reference",- "id": 109,+ "id": 111,"name": "GoTrueClient.verifyOTP"}}@@ -4588,39 +4612,39 @@"title": "Constructors","kind": 512,"children": [- 62+ 64]},{"title": "Properties","kind": 1024,"children": [- 65,- 68,67,- 66,70,69,+ 68,72,- 71+ 71,+ 74,+ 73]},{"title": "Methods","kind": 2048,"children": [- 149,- 161,+ 151,+ 163,+ 129,127,+ 148,+ 142,+ 91,+ 159,+ 75,+ 135,125,- 146,- 140,- 89,- 157,- 73,- 133,- 123,- 109+ 111]}],@@ -4644,7 +4668,7 @@"title": "Classes","kind": 128,"children": [- 61+ 63]}],@@ -4657,7 +4681,7 @@]},{- "id": 201,+ "id": 203,"name": "\"lib/SupabaseQueryBuilder\"","kind": 1,"kindString": "Module",@@ -4667,7 +4691,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts","children": [{- "id": 202,+ "id": 204,"name": "SupabaseQueryBuilder","kind": 128,"kindString": "Class",@@ -4676,7 +4700,7 @@},"typeParameter": [{- "id": 203,+ "id": 205,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -4687,7 +4711,7 @@],"children": [{- "id": 206,+ "id": 208,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -4696,7 +4720,7 @@},"signatures": [{- "id": 207,+ "id": 209,"name": "new SupabaseQueryBuilder","kind": 16384,"kindString": "Constructor signature",@@ -4705,7 +4729,7 @@},"parameters": [{- "id": 208,+ "id": 210,"name": "url","kind": 32768,"kindString": "Parameter",@@ -4718,7 +4742,7 @@}},{- "id": 209,+ "id": 211,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -4729,7 +4753,7 @@"type": {"type": "reflection","declaration": {- "id": 210,+ "id": 212,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4738,7 +4762,37 @@},"children": [{- "id": 211,+ "id": 220,+ "name": "fetch",+ "kind": 32,+ "kindString": "Variable",+ "flags": {+ "isExported": true+ },+ "sources": [+ {+ "fileName": "src/lib/SupabaseQueryBuilder.ts",+ "line": 17,+ "character": 11+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "intrinsic",+ "name": "undefined"+ },+ {+ "type": "reference",+ "id": 220,+ "name": "fetch"+ }+ ]+ }+ },+ {+ "id": 213,"name": "headers","kind": 32,"kindString": "Variable",@@ -4755,7 +4809,7 @@"type": {"type": "reflection","declaration": {- "id": 212,+ "id": 214,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4764,7 +4818,7 @@},"indexSignature": [{- "id": 213,+ "id": 215,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -4773,7 +4827,7 @@},"parameters": [{- "id": 214,+ "id": 216,"name": "key","kind": 32768,"kindString": "Parameter",@@ -4796,7 +4850,7 @@}},{- "id": 216,+ "id": 218,"name": "realtime","kind": 32,"kindString": "Variable",@@ -4816,7 +4870,7 @@}},{- "id": 215,+ "id": 217,"name": "schema","kind": 32,"kindString": "Variable",@@ -4836,7 +4890,7 @@}},{- "id": 217,+ "id": 219,"name": "table","kind": 32,"kindString": "Variable",@@ -4861,10 +4915,11 @@"title": "Variables","kind": 32,"children": [- 211,- 216,- 215,- 217+ 220,+ 213,+ 218,+ 217,+ 219]}],@@ -4881,7 +4936,7 @@],"type": {"type": "reference",- "id": 202,+ "id": 204,"name": "SupabaseQueryBuilder"},"overwrites": {@@ -4903,7 +4958,7 @@}},{- "id": 205,+ "id": 207,"name": "_realtime","kind": 1024,"kindString": "Property",@@ -4924,7 +4979,7 @@}},{- "id": 204,+ "id": 206,"name": "_subscription","kind": 1024,"kindString": "Property",@@ -4941,12 +4996,12 @@],"type": {"type": "reference",- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient"}},{- "id": 276,+ "id": 279,"name": "body","kind": 1024,"kindString": "Property",@@ -4958,7 +5013,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 48,+ "line": 49,"character": 18}],@@ -4992,12 +5047,39 @@},"inheritedFrom": {"type": "reference",- "id": 276,+ "id": 279,"name": "PostgrestBuilder.body"}},{- "id": 271,+ "id": 282,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isExported": true+ },+ "sources": [+ {+ "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",+ "line": 52,+ "character": 19+ }+ ],+ "type": {+ "type": "reference",+ "id": 37,+ "name": "Fetch"+ },+ "inheritedFrom": {+ "type": "reference",+ "id": 282,+ "name": "PostgrestBuilder.fetch"+ }+ },+ {+ "id": 274,"name": "headers","kind": 1024,"kindString": "Property",@@ -5008,14 +5090,14 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 44,+ "line": 45,"character": 21}],"type": {"type": "reflection","declaration": {- "id": 272,+ "id": 275,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5024,7 +5106,7 @@},"indexSignature": [{- "id": 273,+ "id": 276,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -5033,7 +5115,7 @@},"parameters": [{- "id": 274,+ "id": 277,"name": "key","kind": 32768,"kindString": "Parameter",@@ -5055,7 +5137,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 44,+ "line": 45,"character": 22}]@@ -5063,12 +5145,12 @@},"inheritedFrom": {"type": "reference",- "id": 271,+ "id": 274,"name": "PostgrestBuilder.headers"}},{- "id": 269,+ "id": 272,"name": "method","kind": 1024,"kindString": "Property",@@ -5079,7 +5161,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 42,+ "line": 43,"character": 20}],@@ -5110,12 +5192,12 @@},"inheritedFrom": {"type": "reference",- "id": 269,+ "id": 272,"name": "PostgrestBuilder.method"}},{- "id": 275,+ "id": 278,"name": "schema","kind": 1024,"kindString": "Property",@@ -5127,7 +5209,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 47,+ "line": 48,"character": 20}],@@ -5146,12 +5228,12 @@},"inheritedFrom": {"type": "reference",- "id": 275,+ "id": 278,"name": "PostgrestBuilder.schema"}},{- "id": 277,+ "id": 280,"name": "shouldThrowOnError","kind": 1024,"kindString": "Property",@@ -5162,7 +5244,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 49,+ "line": 50,"character": 32}],@@ -5172,12 +5254,12 @@},"inheritedFrom": {"type": "reference",- "id": 277,+ "id": 280,"name": "PostgrestBuilder.shouldThrowOnError"}},{- "id": 278,+ "id": 281,"name": "signal","kind": 1024,"kindString": "Property",@@ -5189,7 +5271,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 50,+ "line": 51,"character": 20}],@@ -5199,12 +5281,12 @@},"inheritedFrom": {"type": "reference",- "id": 278,+ "id": 281,"name": "PostgrestBuilder.signal"}},{- "id": 270,+ "id": 273,"name": "url","kind": 1024,"kindString": "Property",@@ -5215,7 +5297,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 43,+ "line": 44,"character": 17}],@@ -5225,12 +5307,12 @@},"inheritedFrom": {"type": "reference",- "id": 270,+ "id": 273,"name": "PostgrestBuilder.url"}},{- "id": 263,+ "id": 266,"name": "delete","kind": 2048,"kindString": "Method",@@ -5239,7 +5321,7 @@},"signatures": [{- "id": 264,+ "id": 267,"name": "delete","kind": 4096,"kindString": "Call signature",@@ -5251,7 +5333,7 @@},"parameters": [{- "id": 265,+ "id": 268,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -5263,7 +5345,7 @@"type": {"type": "reflection","declaration": {- "id": 266,+ "id": 269,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5272,7 +5354,7 @@},"children": [{- "id": 268,+ "id": 271,"name": "count","kind": 32,"kindString": "Variable",@@ -5285,7 +5367,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 29}],@@ -5316,7 +5398,7 @@}},{- "id": 267,+ "id": 270,"name": "returning","kind": 32,"kindString": "Variable",@@ -5329,7 +5411,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 22}],@@ -5357,15 +5439,15 @@"title": "Variables","kind": 32,"children": [- 268,- 267+ 271,+ 270]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 11}]@@ -5385,7 +5467,7 @@},"inheritedFrom": {"type": "reference",- "id": 263,+ "id": 266,"name": "PostgrestQueryBuilder.delete"}}@@ -5393,18 +5475,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 263,+ "id": 266,"name": "PostgrestQueryBuilder.delete"}},{- "id": 232,+ "id": 235,"name": "insert","kind": 2048,"kindString": "Method",@@ -5413,7 +5495,7 @@},"signatures": [{- "id": 233,+ "id": 236,"name": "insert","kind": 4096,"kindString": "Call signature",@@ -5425,7 +5507,7 @@},"parameters": [{- "id": 234,+ "id": 237,"name": "values","kind": 32768,"kindString": "Parameter",@@ -5465,7 +5547,7 @@}},{- "id": 235,+ "id": 238,"name": "options","kind": 32768,"kindString": "Parameter",@@ -5483,7 +5565,7 @@{"type": "reflection","declaration": {- "id": 236,+ "id": 239,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5492,7 +5574,7 @@},"children": [{- "id": 238,+ "id": 241,"name": "count","kind": 32,"kindString": "Variable",@@ -5503,7 +5585,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 30,+ "line": 31,"character": 13}],@@ -5530,7 +5612,7 @@}},{- "id": 237,+ "id": 240,"name": "returning","kind": 32,"kindString": "Variable",@@ -5541,7 +5623,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 29,+ "line": 30,"character": 17}],@@ -5565,8 +5647,8 @@"title": "Variables","kind": 32,"children": [- 238,- 237+ 241,+ 240]}]@@ -5588,12 +5670,12 @@},"inheritedFrom": {"type": "reference",- "id": 232,+ "id": 235,"name": "PostgrestQueryBuilder.insert"}},{- "id": 239,+ "id": 242,"name": "insert","kind": 4096,"kindString": "Call signature",@@ -5610,7 +5692,7 @@},"parameters": [{- "id": 240,+ "id": 243,"name": "values","kind": 32768,"kindString": "Parameter",@@ -5647,7 +5729,7 @@}},{- "id": 241,+ "id": 244,"name": "options","kind": 32768,"kindString": "Parameter",@@ -5665,7 +5747,7 @@{"type": "reflection","declaration": {- "id": 242,+ "id": 245,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5674,7 +5756,7 @@},"children": [{- "id": 246,+ "id": 249,"name": "count","kind": 32,"kindString": "Variable",@@ -5685,7 +5767,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 39,+ "line": 40,"character": 13}],@@ -5712,7 +5794,7 @@}},{- "id": 244,+ "id": 247,"name": "onConflict","kind": 32,"kindString": "Variable",@@ -5723,7 +5805,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 37,+ "line": 38,"character": 18}],@@ -5742,7 +5824,7 @@}},{- "id": 245,+ "id": 248,"name": "returning","kind": 32,"kindString": "Variable",@@ -5753,7 +5835,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 38,+ "line": 39,"character": 17}],@@ -5772,7 +5854,7 @@}},{- "id": 243,+ "id": 246,"name": "upsert","kind": 32,"kindString": "Variable",@@ -5783,7 +5865,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 36,+ "line": 37,"character": 14}],@@ -5811,10 +5893,10 @@"title": "Variables","kind": 32,"children": [- 246,- 244,- 245,- 243+ 249,+ 247,+ 248,+ 246]}]@@ -5836,7 +5918,7 @@},"inheritedFrom": {"type": "reference",- "id": 232,+ "id": 235,"name": "PostgrestQueryBuilder.insert"}}@@ -5844,23 +5926,23 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 28,+ "line": 29,"character": 10},{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 35,+ "line": 36,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 232,+ "id": 235,"name": "PostgrestQueryBuilder.insert"}},{- "id": 218,+ "id": 221,"name": "on","kind": 2048,"kindString": "Method",@@ -5869,7 +5951,7 @@},"signatures": [{- "id": 219,+ "id": 222,"name": "on","kind": 4096,"kindString": "Call signature",@@ -5881,7 +5963,7 @@},"parameters": [{- "id": 220,+ "id": 223,"name": "event","kind": 32768,"kindString": "Parameter",@@ -5893,12 +5975,12 @@},"type": {"type": "reference",- "id": 59,+ "id": 61,"name": "SupabaseEventTypes"}},{- "id": 221,+ "id": 224,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -5911,7 +5993,7 @@"type": {"type": "reflection","declaration": {- "id": 222,+ "id": 225,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5920,7 +6002,7 @@},"signatures": [{- "id": 223,+ "id": 226,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -5929,7 +6011,7 @@},"parameters": [{- "id": 224,+ "id": 227,"name": "payload","kind": 32768,"kindString": "Parameter",@@ -5938,7 +6020,7 @@},"type": {"type": "reference",- "id": 50,+ "id": 52,"typeArguments": [{"type": "typeParameter",@@ -5958,7 +6040,7 @@"sources": [{"fileName": "src/lib/SupabaseQueryBuilder.ts",- "line": 37,+ "line": 39,"character": 13}]@@ -5968,7 +6050,7 @@],"type": {"type": "reference",- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient"}}@@ -5976,13 +6058,13 @@"sources": [{"fileName": "src/lib/SupabaseQueryBuilder.ts",- "line": 35,+ "line": 37,"character": 4}]},{- "id": 225,+ "id": 228,"name": "select","kind": 2048,"kindString": "Method",@@ -5991,7 +6073,7 @@},"signatures": [{- "id": 226,+ "id": 229,"name": "select","kind": 4096,"kindString": "Call signature",@@ -6003,7 +6085,7 @@},"parameters": [{- "id": 227,+ "id": 230,"name": "columns","kind": 32768,"kindString": "Parameter",@@ -6029,7 +6111,7 @@}},{- "id": 228,+ "id": 231,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -6041,7 +6123,7 @@"type": {"type": "reflection","declaration": {- "id": 229,+ "id": 232,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6050,7 +6132,7 @@},"children": [{- "id": 231,+ "id": 234,"name": "count","kind": 32,"kindString": "Variable",@@ -6063,7 +6145,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 42}],@@ -6094,7 +6176,7 @@}},{- "id": 230,+ "id": 233,"name": "head","kind": 32,"kindString": "Variable",@@ -6107,7 +6189,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 35}],@@ -6135,15 +6217,15 @@"title": "Variables","kind": 32,"children": [- 231,- 230+ 234,+ 233]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 28}]@@ -6163,7 +6245,7 @@},"inheritedFrom": {"type": "reference",- "id": 225,+ "id": 228,"name": "PostgrestQueryBuilder.select"}}@@ -6171,18 +6253,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 225,+ "id": 228,"name": "PostgrestQueryBuilder.select"}},{- "id": 281,+ "id": 285,"name": "then","kind": 2048,"kindString": "Method",@@ -6191,7 +6273,7 @@},"signatures": [{- "id": 282,+ "id": 286,"name": "then","kind": 4096,"kindString": "Call signature",@@ -6200,7 +6282,7 @@},"typeParameter": [{- "id": 283,+ "id": 287,"name": "TResult1","kind": 131072,"kindString": "Type parameter",@@ -6209,7 +6291,7 @@}},{- "id": 284,+ "id": 288,"name": "TResult2","kind": 131072,"kindString": "Type parameter",@@ -6220,7 +6302,7 @@],"parameters": [{- "id": 285,+ "id": 289,"name": "onfulfilled","kind": 32768,"kindString": "Parameter",@@ -6234,7 +6316,7 @@{"type": "reflection","declaration": {- "id": 286,+ "id": 290,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6243,7 +6325,7 @@},"signatures": [{- "id": 287,+ "id": 291,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -6252,7 +6334,7 @@},"parameters": [{- "id": 288,+ "id": 292,"name": "value","kind": 32768,"kindString": "Parameter",@@ -6315,7 +6397,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 59,+ "line": 61,"character": 75}]@@ -6333,7 +6415,7 @@}},{- "id": 289,+ "id": 293,"name": "onrejected","kind": 32768,"kindString": "Parameter",@@ -6347,7 +6429,7 @@{"type": "reflection","declaration": {- "id": 290,+ "id": 294,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6356,7 +6438,7 @@},"signatures": [{- "id": 291,+ "id": 295,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -6365,7 +6447,7 @@},"parameters": [{- "id": 292,+ "id": 296,"name": "reason","kind": 32768,"kindString": "Parameter",@@ -6410,7 +6492,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 59,+ "line": 61,"character": 176}]@@ -6463,7 +6545,7 @@},"inheritedFrom": {"type": "reference",- "id": 281,+ "id": 285,"name": "PostgrestBuilder.then"}}@@ -6471,18 +6553,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 59,+ "line": 61,"character": 8}],"inheritedFrom": {"type": "reference",- "id": 281,+ "id": 285,"name": "PostgrestBuilder.then"}},{- "id": 279,+ "id": 283,"name": "throwOnError","kind": 2048,"kindString": "Method",@@ -6491,7 +6573,7 @@},"signatures": [{- "id": 280,+ "id": 284,"name": "throwOnError","kind": 4096,"kindString": "Call signature",@@ -6514,7 +6596,7 @@},"inheritedFrom": {"type": "reference",- "id": 279,+ "id": 283,"name": "PostgrestBuilder.throwOnError"}}@@ -6522,18 +6604,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 58,+ "line": 60,"character": 16}],"inheritedFrom": {"type": "reference",- "id": 279,+ "id": 283,"name": "PostgrestBuilder.throwOnError"}},{- "id": 256,+ "id": 259,"name": "update","kind": 2048,"kindString": "Method",@@ -6542,7 +6624,7 @@},"signatures": [{- "id": 257,+ "id": 260,"name": "update","kind": 4096,"kindString": "Call signature",@@ -6554,7 +6636,7 @@},"parameters": [{- "id": 258,+ "id": 261,"name": "values","kind": 32768,"kindString": "Parameter",@@ -6576,7 +6658,7 @@}},{- "id": 259,+ "id": 262,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -6588,7 +6670,7 @@"type": {"type": "reflection","declaration": {- "id": 260,+ "id": 263,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6597,7 +6679,7 @@},"children": [{- "id": 262,+ "id": 265,"name": "count","kind": 32,"kindString": "Variable",@@ -6610,7 +6692,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 49}],@@ -6641,7 +6723,7 @@}},{- "id": 261,+ "id": 264,"name": "returning","kind": 32,"kindString": "Variable",@@ -6654,7 +6736,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 42}],@@ -6682,15 +6764,15 @@"title": "Variables","kind": 32,"children": [- 262,- 261+ 265,+ 264]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 30}]@@ -6710,7 +6792,7 @@},"inheritedFrom": {"type": "reference",- "id": 256,+ "id": 259,"name": "PostgrestQueryBuilder.update"}}@@ -6718,18 +6800,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 256,+ "id": 259,"name": "PostgrestQueryBuilder.update"}},{- "id": 247,+ "id": 250,"name": "upsert","kind": 2048,"kindString": "Method",@@ -6738,7 +6820,7 @@},"signatures": [{- "id": 248,+ "id": 251,"name": "upsert","kind": 4096,"kindString": "Call signature",@@ -6750,7 +6832,7 @@},"parameters": [{- "id": 249,+ "id": 252,"name": "values","kind": 32768,"kindString": "Parameter",@@ -6790,7 +6872,7 @@}},{- "id": 250,+ "id": 253,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -6802,7 +6884,7 @@"type": {"type": "reflection","declaration": {- "id": 251,+ "id": 254,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6811,7 +6893,7 @@},"children": [{- "id": 254,+ "id": 257,"name": "count","kind": 32,"kindString": "Variable",@@ -6824,7 +6906,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 76}],@@ -6855,7 +6937,7 @@}},{- "id": 255,+ "id": 258,"name": "ignoreDuplicates","kind": 32,"kindString": "Variable",@@ -6868,7 +6950,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 94}],@@ -6891,7 +6973,7 @@}},{- "id": 252,+ "id": 255,"name": "onConflict","kind": 32,"kindString": "Variable",@@ -6904,7 +6986,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 58}],@@ -6923,7 +7005,7 @@}},{- "id": 253,+ "id": 256,"name": "returning","kind": 32,"kindString": "Variable",@@ -6936,7 +7018,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 69}],@@ -6964,17 +7046,17 @@"title": "Variables","kind": 32,"children": [- 254,+ 257,+ 258,255,- 252,- 253+ 256]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 45}]@@ -6994,7 +7076,7 @@},"inheritedFrom": {"type": "reference",- "id": 247,+ "id": 250,"name": "PostgrestQueryBuilder.upsert"}}@@ -7002,13 +7084,13 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 247,+ "id": 250,"name": "PostgrestQueryBuilder.upsert"}}@@ -7018,36 +7100,37 @@"title": "Constructors","kind": 512,"children": [- 206+ 208]},{"title": "Properties","kind": 1024,"children": [- 205,- 204,- 276,- 271,- 269,- 275,- 277,+ 207,+ 206,+ 279,+ 282,+ 274,+ 272,278,- 270+ 280,+ 281,+ 273]},{"title": "Methods","kind": 2048,"children": [- 263,- 232,- 218,- 225,- 281,- 279,- 256,- 247+ 266,+ 235,+ 221,+ 228,+ 285,+ 283,+ 259,+ 250]}],@@ -7095,7 +7178,7 @@"title": "Classes","kind": 128,"children": [- 202+ 204]}],@@ -7108,7 +7191,7 @@]},{- "id": 171,+ "id": 173,"name": "\"lib/SupabaseRealtimeClient\"","kind": 1,"kindString": "Module",@@ -7118,7 +7201,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts","children": [{- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient","kind": 128,"kindString": "Class",@@ -7127,7 +7210,7 @@},"children": [{- "id": 174,+ "id": 176,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -7136,7 +7219,7 @@},"signatures": [{- "id": 175,+ "id": 177,"name": "new SupabaseRealtimeClient","kind": 16384,"kindString": "Constructor signature",@@ -7145,7 +7228,7 @@},"parameters": [{- "id": 176,+ "id": 178,"name": "socket","kind": 32768,"kindString": "Parameter",@@ -7158,7 +7241,7 @@}},{- "id": 177,+ "id": 179,"name": "headers","kind": 32768,"kindString": "Parameter",@@ -7168,7 +7251,7 @@"type": {"type": "reflection","declaration": {- "id": 178,+ "id": 180,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7177,7 +7260,7 @@},"indexSignature": [{- "id": 179,+ "id": 181,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -7186,7 +7269,7 @@},"parameters": [{- "id": 180,+ "id": 182,"name": "key","kind": 32768,"kindString": "Parameter",@@ -7216,7 +7299,7 @@}},{- "id": 181,+ "id": 183,"name": "schema","kind": 32768,"kindString": "Parameter",@@ -7229,7 +7312,7 @@}},{- "id": 182,+ "id": 184,"name": "tableName","kind": 32768,"kindString": "Parameter",@@ -7244,7 +7327,7 @@],"type": {"type": "reference",- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient"}}@@ -7258,7 +7341,7 @@]},{- "id": 173,+ "id": 175,"name": "subscription","kind": 1024,"kindString": "Property",@@ -7278,7 +7361,7 @@}},{- "id": 183,+ "id": 185,"name": "getPayloadRecords","kind": 2048,"kindString": "Method",@@ -7288,7 +7371,7 @@},"signatures": [{- "id": 184,+ "id": 186,"name": "getPayloadRecords","kind": 4096,"kindString": "Call signature",@@ -7297,7 +7380,7 @@},"parameters": [{- "id": 185,+ "id": 187,"name": "payload","kind": 32768,"kindString": "Parameter",@@ -7313,7 +7396,7 @@"type": {"type": "reflection","declaration": {- "id": 186,+ "id": 188,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7322,7 +7405,7 @@},"children": [{- "id": 187,+ "id": 189,"name": "new","kind": 32,"kindString": "Variable",@@ -7339,7 +7422,7 @@"type": {"type": "reflection","declaration": {- "id": 188,+ "id": 190,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7350,7 +7433,7 @@}},{- "id": 189,+ "id": 191,"name": "old","kind": 32,"kindString": "Variable",@@ -7367,7 +7450,7 @@"type": {"type": "reflection","declaration": {- "id": 190,+ "id": 192,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7383,8 +7466,8 @@"title": "Variables","kind": 32,"children": [- 187,- 189+ 189,+ 191]}]@@ -7401,7 +7484,7 @@]},{- "id": 191,+ "id": 193,"name": "on","kind": 2048,"kindString": "Method",@@ -7410,7 +7493,7 @@},"signatures": [{- "id": 192,+ "id": 194,"name": "on","kind": 4096,"kindString": "Call signature",@@ -7422,7 +7505,7 @@},"parameters": [{- "id": 193,+ "id": 195,"name": "event","kind": 32768,"kindString": "Parameter",@@ -7434,12 +7517,12 @@},"type": {"type": "reference",- "id": 59,+ "id": 61,"name": "SupabaseEventTypes"}},{- "id": 194,+ "id": 196,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -7452,7 +7535,7 @@"type": {"type": "reflection","declaration": {- "id": 195,+ "id": 197,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7461,7 +7544,7 @@},"signatures": [{- "id": 196,+ "id": 198,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -7470,7 +7553,7 @@},"parameters": [{- "id": 197,+ "id": 199,"name": "payload","kind": 32768,"kindString": "Parameter",@@ -7479,7 +7562,7 @@},"type": {"type": "reference",- "id": 50,+ "id": 52,"typeArguments": [{"type": "intrinsic",@@ -7522,7 +7605,7 @@]},{- "id": 198,+ "id": 200,"name": "subscribe","kind": 2048,"kindString": "Method",@@ -7531,7 +7614,7 @@},"signatures": [{- "id": 199,+ "id": 201,"name": "subscribe","kind": 4096,"kindString": "Call signature",@@ -7543,7 +7626,7 @@},"parameters": [{- "id": 200,+ "id": 202,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -7577,23 +7660,23 @@"title": "Constructors","kind": 512,"children": [- 174+ 176]},{"title": "Properties","kind": 1024,"children": [- 173+ 175]},{"title": "Methods","kind": 2048,"children": [- 183,- 191,- 198+ 185,+ 193,+ 200]}],@@ -7611,7 +7694,7 @@"title": "Classes","kind": 128,"children": [- 172+ 174]}],@@ -7951,6 +8034,7 @@],"type": {"type": "reference",+ "id": 37,"name": "Fetch"},"inheritedFrom": {@@ -8152,7 +8236,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 6,+ "line": 8,"character": 42}],@@ -8275,6 +8359,7 @@],"type": {"type": "reference",+ "id": 37,"name": "Fetch"}},@@ -8451,7 +8536,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 6,+ "line": 8,"character": 50}]@@ -8461,6 +8546,30 @@},{"id": 37,+ "name": "Fetch",+ "kind": 4194304,+ "kindString": "Type alias",+ "flags": {+ "isExported": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 4,+ "character": 17+ }+ ],+ "type": {+ "type": "query",+ "queryType": {+ "type": "reference",+ "id": 220,+ "name": "fetch"+ }+ }+ },+ {+ "id": 38,"name": "GoTrueClientOptions","kind": 4194304,"kindString": "Type alias",@@ -8468,7 +8577,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 4,+ "line": 6,"character": 24}],@@ -8494,7 +8603,7 @@}},{- "id": 38,+ "id": 39,"name": "SupabaseClientOptions","kind": 4194304,"kindString": "Type alias",@@ -8504,14 +8613,14 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 8,+ "line": 10,"character": 33}],"type": {"type": "reflection","declaration": {- "id": 39,+ "id": 40,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -8520,7 +8629,7 @@},"children": [{- "id": 45,+ "id": 46,"name": "autoRefreshToken","kind": 32,"kindString": "Variable",@@ -8534,7 +8643,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 20,+ "line": 22,"character": 18}],@@ -8557,7 +8666,7 @@}},{- "id": 47,+ "id": 48,"name": "detectSessionInUrl","kind": 32,"kindString": "Variable",@@ -8571,7 +8680,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 28,+ "line": 30,"character": 20}],@@ -8594,7 +8703,32 @@}},{- "id": 41,+ "id": 51,+ "name": "fetch",+ "kind": 32,+ "kindString": "Variable",+ "flags": {+ "isExported": true,+ "isOptional": true+ },+ "comment": {+ "shortText": "A custom `fetch` implementation."+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 44,+ "character": 7+ }+ ],+ "type": {+ "type": "reference",+ "id": 37,+ "name": "Fetch"+ }+ },+ {+ "id": 42,"name": "headers","kind": 32,"kindString": "Variable",@@ -8608,7 +8742,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 16,+ "line": 18,"character": 9}],@@ -8622,7 +8756,7 @@{"type": "reflection","declaration": {- "id": 42,+ "id": 43,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -8631,7 +8765,7 @@},"indexSignature": [{- "id": 43,+ "id": 44,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -8640,7 +8774,7 @@},"parameters": [{- "id": 44,+ "id": 45,"name": "key","kind": 32768,"kindString": "Parameter",@@ -8665,7 +8799,7 @@}},{- "id": 48,+ "id": 49,"name": "localStorage","kind": 32,"kindString": "Variable",@@ -8679,7 +8813,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 32,+ "line": 34,"character": 14}],@@ -8696,7 +8830,7 @@}},{- "id": 46,+ "id": 47,"name": "persistSession","kind": 32,"kindString": "Variable",@@ -8710,7 +8844,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 24,+ "line": 26,"character": 16}],@@ -8733,7 +8867,7 @@}},{- "id": 49,+ "id": 50,"name": "realtime","kind": 32,"kindString": "Variable",@@ -8747,7 +8881,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 37,+ "line": 39,"character": 10}],@@ -8757,7 +8891,7 @@}},{- "id": 40,+ "id": 41,"name": "schema","kind": 32,"kindString": "Variable",@@ -8771,7 +8905,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 12,+ "line": 14,"character": 8}],@@ -8795,20 +8929,21 @@"title": "Variables","kind": 32,"children": [- 45,- 47,- 41,- 48,46,+ 48,+ 51,+ 42,49,- 40+ 47,+ 50,+ 41]}],"sources": [{"fileName": "src/lib/types.ts",- "line": 8,+ "line": 10,"character": 35}]@@ -8816,7 +8951,7 @@}},{- "id": 59,+ "id": 61,"name": "SupabaseEventTypes","kind": 4194304,"kindString": "Type alias",@@ -8826,7 +8961,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 51,+ "line": 58,"character": 30}],@@ -8853,7 +8988,7 @@}},{- "id": 50,+ "id": 52,"name": "SupabaseRealtimePayload","kind": 4194304,"kindString": "Type alias",@@ -8862,7 +8997,7 @@},"typeParameter": [{- "id": 51,+ "id": 53,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -8874,14 +9009,14 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 40,+ "line": 47,"character": 35}],"type": {"type": "reflection","declaration": {- "id": 52,+ "id": 54,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -8890,7 +9025,7 @@},"children": [{- "id": 53,+ "id": 55,"name": "commit_timestamp","kind": 32,"kindString": "Variable",@@ -8900,7 +9035,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 41,+ "line": 48,"character": 18}],@@ -8910,7 +9045,7 @@}},{- "id": 54,+ "id": 56,"name": "eventType","kind": 32,"kindString": "Variable",@@ -8920,7 +9055,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 42,+ "line": 49,"character": 11}],@@ -8943,7 +9078,7 @@}},{- "id": 57,+ "id": 59,"name": "new","kind": 32,"kindString": "Variable",@@ -8956,7 +9091,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 46,+ "line": 53,"character": 5}],@@ -8966,7 +9101,7 @@}},{- "id": 58,+ "id": 60,"name": "old","kind": 32,"kindString": "Variable",@@ -8979,7 +9114,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 48,+ "line": 55,"character": 5}],@@ -8989,7 +9124,7 @@}},{- "id": 55,+ "id": 57,"name": "schema","kind": 32,"kindString": "Variable",@@ -8999,7 +9134,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 43,+ "line": 50,"character": 8}],@@ -9009,7 +9144,7 @@}},{- "id": 56,+ "id": 58,"name": "table","kind": 32,"kindString": "Variable",@@ -9019,7 +9154,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 44,+ "line": 51,"character": 7}],@@ -9034,19 +9169,19 @@"title": "Variables","kind": 32,"children": [- 53,- 54,- 57,- 58,55,- 56+ 56,+ 59,+ 60,+ 57,+ 58]}],"sources": [{"fileName": "src/lib/types.ts",- "line": 40,+ "line": 47,"character": 40}]@@ -9068,8 +9203,9 @@"children": [37,38,- 59,- 50+ 39,+ 61,+ 52]}],@@ -9137,11 +9273,11 @@"title": "Modules","kind": 1,"children": [- 293,- 365,- 60,- 201,- 171,+ 297,+ 370,+ 62,+ 203,+ 173,3,6,12,@@ -9153,436 +9289,313 @@{"id": 0,"name": "@supabase/gotrue-js",- "kind": 0,+ "kind": 1,+ "kindString": "Project","flags": {},"originalName": "","children": [{- "id": 185,- "name": "\"GoTrueApi\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",+ "id": 1,+ "name": "GoTrueApi",+ "kind": 128,+ "kindString": "Class",+ "flags": {},"children": [{- "id": 189,- "name": "GoTrueApi",- "kind": 128,- "kindString": "Class",- "flags": {- "isExported": true- },- "children": [+ "id": 2,+ "name": "constructor",+ "kind": 512,+ "kindString": "Constructor",+ "flags": {},+ "sources": [{- "id": 196,- "name": "constructor",- "kind": 512,- "kindString": "Constructor",- "flags": {- "isExported": true- },- "signatures": [+ "fileName": "src/GoTrueApi.ts",+ "line": 20,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 3,+ "name": "new GoTrueApi",+ "kind": 16384,+ "kindString": "Constructor signature",+ "flags": {},+ "parameters": [{- "id": 197,- "name": "new GoTrueApi",- "kind": 16384,- "kindString": "Constructor signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 198,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 199,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "id": 4,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 5,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 11,+ "name": "cookieOptions",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 205,- "name": "cookieOptions",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 22,- "character": 17- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reference",- "id": 97,- "name": "CookieOptions"- }- ]- }- },+ "fileName": "src/GoTrueApi.ts",+ "line": 30,+ "character": 4+ }+ ],+ "type": {+ "type": "reference",+ "id": 439,+ "name": "CookieOptions"+ }+ },+ {+ "id": 12,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 201,- "name": "headers",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [+ "fileName": "src/GoTrueApi.ts",+ "line": 31,+ "character": 4+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 13,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "signatures": [{- "fileName": "GoTrueApi.ts",- "line": 21,- "character": 11- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 202,+ "id": 14,"name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [{- "id": 203,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",+ "id": 15,+ "name": "input",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "RequestInfo"+ }+ },+ {+ "id": 16,+ "name": "init",+ "kind": 32768,+ "kindString": "Parameter","flags": {- "isExported": true+ "isOptional": true},- "parameters": [- {- "id": 204,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "name": "RequestInit"}}- ]- }- }- },- {- "id": 200,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 20,- "character": 7+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "name": "Response"+ }+ ],+ "name": "Promise"+ }}- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"\""+ ]}- ],- "groups": [+ }+ },+ {+ "id": 7,+ "name": "headers",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 205,- 201,- 200- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 27,+ "character": 4}],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 8,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 9,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [+ {+ "id": 10,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ }+ }+ },+ {+ "id": 6,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 19,- "character": 14+ "fileName": "src/GoTrueApi.ts",+ "line": 26,+ "character": 4}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 11,+ 12,+ 7,+ 6]}- }+ ]}- ],- "type": {- "type": "reference",- "id": 189,- "name": "GoTrueApi"}}],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 17,- "character": 40- }- ]- },- {- "id": 195,- "name": "cookieOptions",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 17,- "character": 25- }- ],"type": {"type": "reference",- "id": 97,- "name": "CookieOptions"- }- },- {- "id": 191,- "name": "headers",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 14,- "character": 19- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 192,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 193,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 194,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 14,- "character": 20- }- ]- }- }- },- {- "id": 190,- "name": "url",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 13,- "character": 15- }- ],- "type": {- "type": "intrinsic",- "name": "string"+ "id": 1,+ "name": "default"}- },+ }+ ]+ },+ {+ "id": 22,+ "name": "cookieOptions",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [{- "id": 291,- "name": "_createRequestHeaders",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 292,- "name": "_createRequestHeaders",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods"- },- "parameters": [- {- "id": 293,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT.\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 294,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- }- }- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 272,- "character": 31- }- ]- },+ "fileName": "src/GoTrueApi.ts",+ "line": 17,+ "character": 12+ }+ ],+ "type": {+ "type": "reference",+ "id": 439,+ "name": "CookieOptions"+ }+ },+ {+ "id": 23,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isOptional": true+ },+ "sources": [{- "id": 322,- "name": "deleteUser",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },+ "fileName": "src/GoTrueApi.ts",+ "line": 18,+ "character": 12+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 24,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},"signatures": [{- "id": 323,- "name": "deleteUser",+ "id": 25,+ "name": "__type","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Delete a user. Requires a `service_role` key.",- "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"- },+ "flags": {},"parameters": [{- "id": 324,- "name": "uid",+ "id": 26,+ "name": "input","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The user uid you want to remove."- },+ "flags": {},"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "name": "RequestInfo"}},{- "id": 325,- "name": "jwt",+ "id": 27,+ "name": "init","kind": 32768,"kindString": "Parameter","flags": {- "isExported": true- },- "comment": {- "text": "A valid JWT. Must be a full-access API key (e.g. service_role key).\n"+ "isOptional": true},"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "name": "RequestInit"}}],@@ -9590,12967 +9603,8499 @@"type": "reference","typeArguments": [{- "type": "reflection",- "declaration": {- "id": 326,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 328,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "type": "reference",+ "name": "Response"+ }+ ],+ "name": "Promise"+ }+ }+ ]+ }+ }+ },+ {+ "id": 18,+ "name": "headers",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 14,+ "character": 12+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 19,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 20,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [+ {+ "id": 21,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ }+ }+ },+ {+ "id": 17,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 13,+ "character": 12+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 130,+ "name": "_createRequestHeaders",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 337,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 131,+ "name": "_createRequestHeaders",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods"+ },+ "parameters": [+ {+ "id": 132,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 133,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}+ }+ }+ }+ ]+ },+ {+ "id": 28,+ "name": "createUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 47,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 29,+ "name": "createUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Creates a new user.",+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"+ },+ "parameters": [+ {+ "id": 30,+ "name": "attributes",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The data you want to create the user with."+ },+ "type": {+ "type": "reference",+ "id": 426,+ "name": "UserAttributes"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [+ {+ "type": "reflection",+ "declaration": {+ "id": 31,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "id": 329,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "id": 32,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 58+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 15}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "literal",+ "value": null}},{- "id": 327,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "id": 33,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 19+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 27}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "reference",+ "name": "ApiError"}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 328,- 329,- 327+ 32,+ 33]}+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 34,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 35,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 49+ }+ ],+ "type": {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ },+ {+ "id": 36,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 61+ }+ ],+ "type": {+ "type": "literal",+ "value": null+ }+ }],- "sources": [+ "groups": [{- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 13+ "title": "Properties",+ "kind": 1024,+ "children": [+ 35,+ 36+ ]}]}}- ],- "name": "Promise"+ ]}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 360,- "character": 18- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 161,+ "name": "deleteUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 347,- "name": "generateLink",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 428,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 162,+ "name": "deleteUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Delete a user. Requires a `service_role` key.",+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"},- "signatures": [+ "parameters": [{- "id": 348,- "name": "generateLink",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true+ "id": 163,+ "name": "uid",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The user uid you want to remove."},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 164,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Generates links to be sent via email or other."+ "shortText": "A valid JWT. Must be a full-access API key (e.g. service_role key).\n"},- "parameters": [- {- "id": 349,- "name": "type",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."- },- "type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "signup"- },- {- "type": "stringLiteral",- "value": "magiclink"- },- {- "type": "stringLiteral",- "value": "recovery"- },- {- "type": "stringLiteral",- "value": "invite"- }- ]- }- },- {- "id": 350,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's email."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 351,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 352,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 354,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 460,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 353,- "name": "password",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 459,- "character": 14- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 165,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 167,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 355,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 461,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 431,+ "character": 34}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 168,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 354,- 353,- 355- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 431,+ "character": 53}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 166,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 458,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 431,+ "character": 15}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 167,+ 168,+ 166]}- },- "defaultValue": "{}"+ ]}- ],+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 187,+ "name": "generateLink",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 531,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 188,+ "name": "generateLink",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Generates links to be sent via email or other."+ },+ "parameters": [+ {+ "id": 189,+ "name": "type",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."+ },"type": {- "type": "reference",- "typeArguments": [+ "type": "union",+ "types": [{- "type": "reflection",- "declaration": {- "id": 356,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "literal",+ "value": "signup"+ },+ {+ "type": "literal",+ "value": "magiclink"+ },+ {+ "type": "literal",+ "value": "recovery"+ },+ {+ "type": "literal",+ "value": "invite"+ }+ ]+ }+ },+ {+ "id": 190,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The user's email."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 191,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 192,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 194,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 357,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata. For signup only."- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 463,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "sources": [{- "id": 358,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 463,- "character": 49- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 536,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 193,+ "name": "password",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 357,- 358- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 535,+ "character": 6}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 195,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "GoTrueApi.ts",- "line": 463,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 537,+ "character": 6}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 194,+ 193,+ 195]}- }- ],- "name": "Promise"- }+ ]+ }+ },+ "defaultValue": "{}"}],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 455,- "character": 20- }- ]- },- {- "id": 300,- "name": "getUrlForProvider",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 301,- "name": "getUrlForProvider",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Generates the relevant login URL for a third-party provider."- },- "parameters": [- {- "id": 302,- "name": "provider",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "One of the providers supported by GoTrue."- },- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 303,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 304,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 305,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 304,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 196,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 197,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 306,- "name": "scopes",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/GoTrueApi.ts",+ "line": 539,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 305,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"}+ ]+ }+ },+ {+ "id": 198,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 539,+ "character": 44}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 197,+ 198+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 139,+ "name": "getUrlForProvider",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 367,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 140,+ "name": "getUrlForProvider",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Generates the relevant login URL for a third-party provider."+ },+ "parameters": [+ {+ "id": 141,+ "name": "provider",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "One of the providers supported by GoTrue."+ },+ "type": {+ "type": "reference",+ "id": 391,+ "name": "Provider"+ }+ },+ {+ "id": 142,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 143,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 144,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 305,- 306- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 370,+ "character": 6}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 145,+ "name": "scopes",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "GoTrueApi.ts",- "line": 303,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 371,+ "character": 6}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 144,+ 145]}- }+ ]}- ],- "type": {- "type": "intrinsic",- "name": "string"}}],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 301,- "character": 19- }- ]- },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ]+ },+ {+ "id": 146,+ "name": "getUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 307,+ "fileName": "src/GoTrueApi.ts",+ "line": 388,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 147,"name": "getUser",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Gets the user details."},- "signatures": [+ "parameters": [{- "id": 308,- "name": "getUser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 148,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Gets the user details."+ "shortText": "A valid, logged-in JWT.\n"},- "parameters": [- {- "id": 309,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT.\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 310,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 312,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 313,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 149,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 151,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 311,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 390,+ "character": 34}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 152,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 312,- 313,- 311- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 390,+ "character": 53}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 150,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 390,+ "character": 15}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 151,+ 152,+ 150]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 322,- "character": 15- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 179,+ "name": "getUserByCookie",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 340,+ "fileName": "src/GoTrueApi.ts",+ "line": 499,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 180,"name": "getUserByCookie",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."},- "signatures": [+ "parameters": [{- "id": 341,- "name": "getUserByCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."- },- "parameters": [- {- "id": 342,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],+ "id": 181,+ "name": "req",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 343,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [+ "type": "intrinsic",+ "name": "any"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 182,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 185,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 345,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 502,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 346,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ {+ "type": "reference",+ "id": 401,+ "name": "User"}- },+ ]+ }+ },+ {+ "id": 186,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 344,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 503,+ "character": 4}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 183,+ "name": "token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 345,- 346,- 344- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 500,+ "character": 4}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "intrinsic",+ "name": "string"+ }+ ]+ }+ },+ {+ "id": 184,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 501,+ "character": 4}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 185,+ 186,+ 183,+ 184]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 429,- "character": 23- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 110,+ "name": "inviteUserByEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 278,+ "character": 8+ }+ ],+ "signatures": [{- "id": 271,+ "id": 111,"name": "inviteUserByEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sends an invite link to an email address."},- "signatures": [+ "parameters": [{- "id": 272,- "name": "inviteUserByEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 112,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Sends an invite link to an email address."+ "shortText": "The email address of the user."},- "parameters": [- {- "id": 273,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 274,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 275,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 113,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 114,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 116,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 277,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 223,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },+ "sources": [{- "id": 276,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 222,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 282,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 115,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 277,- 276- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 281,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 116,+ 115+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 117,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 118,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 284,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 119,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 221,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 284,+ "character": 34}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 118,+ 119]}- },- "defaultValue": "{}"+ ]}- ],- "type": {- "type": "reference",- "typeArguments": [+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 37,+ "name": "listUsers",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 38,+ "name": "listUsers",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Get a list of users.",+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"+ },+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [{"type": "reflection","declaration": {- "id": 278,+ "id": 39,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 279,+ "id": 40,"name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata\n"- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 225,- "character": 19+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 31}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "literal",+ "value": null}},{- "id": 280,+ "id": 41,"name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 225,- "character": 39+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 43}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "reference",+ "name": "ApiError"}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 279,- 280+ 40,+ 41]}- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 225,- "character": 13- }]}- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 219,- "character": 25- }- ]- },- {- "id": 330,- "name": "refreshAccessToken",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 331,- "name": "refreshAccessToken",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Generates a new JWT."- },- "parameters": [- {- "id": 332,- "name": "refreshToken",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid refresh token that was returned on login.\n"},- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [{"type": "reflection","declaration": {- "id": 333,+ "id": 42,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 334,+ "id": 43,"name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 384,- "character": 19+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 65}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "array",+ "elementType": {+ "type": "reference",+ "id": 401,+ "name": "User"+ }}},{- "id": 335,+ "id": 44,"name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 384,- "character": 42+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 79}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "literal",+ "value": null}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 334,- 335+ 43,+ 44]}- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 384,- "character": 13- }]}}- ],- "name": "Promise"+ ]}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 382,- "character": 26- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 169,+ "name": "refreshAccessToken",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 281,- "name": "resetPasswordForEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 451,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 170,+ "name": "refreshAccessToken",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Generates a new JWT."},- "signatures": [+ "parameters": [{- "id": 282,- "name": "resetPasswordForEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 171,+ "name": "refreshToken",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Sends a reset request to an email address."+ "shortText": "A valid refresh token that was returned on login.\n"},- "parameters": [- {- "id": 283,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 284,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 285,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 286,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 251,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 172,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 173,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 286- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 453,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 174,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 250,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 453,+ "character": 37}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 173,+ 174]}- },- "defaultValue": "{}"+ ]}- ],+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 120,+ "name": "resetPasswordForEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 308,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 121,+ "name": "resetPasswordForEmail",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sends a reset request to an email address."+ },+ "parameters": [+ {+ "id": 122,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The email address of the user."+ },"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 287,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 123,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 124,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 125,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 288,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 289,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 20- }- ]- }- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "sources": [{- "id": 290,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 37- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 311,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 125+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 126,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 127,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 288,- 290- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 313,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 128,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}+ }+ }+ ]+ }+ },+ {+ "id": 129,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 313,+ "character": 32}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 127,+ 129]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 248,- "character": 29- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 83,+ "name": "sendMagicLinkEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 207,+ "character": 8+ }+ ],+ "signatures": [{- "id": 244,+ "id": 84,"name": "sendMagicLinkEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sends a magic login link to an email address."},- "signatures": [+ "parameters": [{- "id": 245,- "name": "sendMagicLinkEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 85,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Sends a magic login link to an email address."+ "shortText": "The email address of the user."},- "parameters": [- {- "id": 246,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 247,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 248,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 249,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 157,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 249- ]- }- ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 86,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 87,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 88,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "GoTrueApi.ts",- "line": 156,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 210,+ "character": 6}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 88]}- },- "defaultValue": "{}"+ ]}- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 250,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 251,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 252,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 20- }- ]- }- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 89,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 90,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 253,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 212,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 37+ {+ "type": "reflection",+ "declaration": {+ "id": 91,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}}- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]}- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 251,- 253- ]- }- ],+ ]+ }+ },+ {+ "id": 92,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 212,+ "character": 32}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 90,+ 92]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 154,- "character": 26- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 93,+ "name": "sendMobileOTP",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 254,+ "fileName": "src/GoTrueApi.ts",+ "line": 235,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 94,"name": "sendMobileOTP",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"},- "signatures": [+ "parameters": [{- "id": 255,- "name": "sendMobileOTP",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 95,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"+ "shortText": "The user's phone number WITH international prefix\n"},- "parameters": [- {- "id": 256,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's phone number WITH international prefix\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 257,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 258,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 52- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 259,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 53- }- ]- }- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 96,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 97,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 260,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 235,+ "character": 48+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 70+ {+ "type": "reflection",+ "declaration": {+ "id": 98,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}}- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]}- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 258,- 260- ]- }- ],+ ]+ }+ },+ {+ "id": 99,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 46+ "fileName": "src/GoTrueApi.ts",+ "line": 235,+ "character": 65}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 97,+ 99]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 21- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 175,+ "name": "setAuthCookie",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 336,+ "fileName": "src/GoTrueApi.ts",+ "line": 473,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 176,"name": "setAuthCookie",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."},- "signatures": [+ "parameters": [{- "id": 337,- "name": "setAuthCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."- },- "parameters": [- {- "id": 338,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 339,- "name": "res",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],+ "id": 177,+ "name": "req",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"type": {"type": "intrinsic",- "name": "void"+ "name": "any"+ }+ },+ {+ "id": 178,+ "name": "res",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "any"}}],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 403,- "character": 15- }- ]- },+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 56,+ "name": "signInWithEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 217,+ "fileName": "src/GoTrueApi.ts",+ "line": 120,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 57,"name": "signInWithEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Logs in an existing user using their email address."},- "signatures": [+ "parameters": [{- "id": 218,- "name": "signInWithEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true+ "id": 58,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The email address of the user."},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 59,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Logs in an existing user using their email address."+ "shortText": "The password of the user."},- "parameters": [- {- "id": 219,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 220,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The password of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 221,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 222,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 60,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 61,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 62,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 223,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 82,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 124,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 62+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 63,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 64,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 223- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 126,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 65,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 81,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 126,+ "character": 37}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 64,+ 65]}- },- "defaultValue": "{}"+ ]}- ],+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 76,+ "name": "signInWithPhone",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 181,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 77,+ "name": "signInWithPhone",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Logs in an existing user using their phone number and password."+ },+ "parameters": [+ {+ "id": 78,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The phone number of the user."+ },"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 224,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 225,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 84,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 79,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The password of the user.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 80,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 81,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 226,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 84,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 184,+ "character": 15}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 82,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 225,- 226- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 184,+ "character": 37}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 81,+ 82+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 134,+ "name": "signOut",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 347,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 135,+ "name": "signOut",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Removes a logged-in session."+ },+ "parameters": [+ {+ "id": 136,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 137,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 138,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 84,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 347,+ "character": 40}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 138]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 78,- "character": 23- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 45,+ "name": "signUpWithEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 237,- "name": "signInWithPhone",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 86,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 46,+ "name": "signUpWithEmail",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Creates a new user using their email address.",+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"},- "signatures": [+ "parameters": [{- "id": 238,- "name": "signInWithPhone",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 47,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Logs in an existing user using their phone number and password."+ "shortText": "The email address of the user."},- "parameters": [- {- "id": 239,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The phone number of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 240,- "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": 241,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 48,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The password of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 49,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 50,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 52,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 242,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 136,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "fileName": "src/GoTrueApi.ts",+ "line": 91,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 51,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 243,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 136,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 90,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 52,+ 51+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 53,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 54,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 242,- 243- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 93,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 55,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 136,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 93,+ "character": 44}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 54,+ 55]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 133,- "character": 23- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 66,+ "name": "signUpWithPhone",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 295,- "name": "signOut",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 153,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 67,+ "name": "signUpWithPhone",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Signs up a new user using their phone number and a password."},- "signatures": [+ "parameters": [{- "id": 296,- "name": "signOut",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true+ "id": 68,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The phone number of the user."},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 69,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Removes a logged-in session."+ "shortText": "The password of the user."},- "parameters": [- {- "id": 297,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT.\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 298,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 70,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 71,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 72,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 299,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 282,- "character": 45- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 157,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 72+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 73,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 74,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 299- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 159,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 75,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 282,- "character": 38+ "fileName": "src/GoTrueApi.ts",+ "line": 159,+ "character": 44}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 74,+ 75]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 282,- "character": 15- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 153,+ "name": "updateUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 206,- "name": "signUpWithEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 406,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 154,+ "name": "updateUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Updates the user data."},- "signatures": [+ "parameters": [{- "id": 207,- "name": "signUpWithEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true+ "id": 155,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT."},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 156,+ "name": "attributes",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Creates a new user using their email address.",- "returns": "A logged-in session if the server has \"autoconfirm\" ON"+ "shortText": "The data you want to update.\n"},- "parameters": [- {- "id": 208,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 209,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The password of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 210,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 211,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 213,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 50,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },+ "type": {+ "type": "reference",+ "id": 426,+ "name": "UserAttributes"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 157,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 159,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 212,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 49,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 409,+ "character": 34}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 160,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 213,- 212- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 409,+ "character": 53}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 158,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 48,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 409,+ "character": 15}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 159,+ 160,+ 158]}- },- "defaultValue": "{}"+ ]}- ],+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 100,+ "name": "verifyMobileOTP",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 251,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 101,+ "name": "verifyMobileOTP",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Send User supplied Mobile OTP to be verified"+ },+ "parameters": [+ {+ "id": 102,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The user's phone number WITH international prefix"+ },"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 214,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 103,+ "name": "token",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "token that user was sent to their mobile phone"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 104,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 105,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 106,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 215,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata.\n"- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 52,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 216,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 52,- "character": 49- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 255,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 106+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 107,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 108,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 215,- 216- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 257,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 109,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 52,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 257,+ "character": 44}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 108,+ 109]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 45,- "character": 23- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ }+ ],+ "groups": [+ {+ "title": "Constructors",+ "kind": 512,+ "children": [+ 2+ ]+ },+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 22,+ 23,+ 18,+ 17+ ]+ },+ {+ "title": "Methods",+ "kind": 2048,+ "children": [+ 130,+ 28,+ 161,+ 187,+ 139,+ 146,+ 179,+ 110,+ 37,+ 169,+ 120,+ 83,+ 93,+ 175,+ 56,+ 76,+ 134,+ 45,+ 66,+ 153,+ 100+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 12,+ "character": 21+ }+ ]+ },+ {+ "id": 199,+ "name": "GoTrueClient",+ "kind": 128,+ "kindString": "Class",+ "flags": {},+ "children": [+ {+ "id": 200,+ "name": "constructor",+ "kind": 512,+ "kindString": "Constructor",+ "flags": {},+ "sources": [{- "id": 227,- "name": "signUpWithPhone",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueClient.ts",+ "line": 71,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 201,+ "name": "new GoTrueClient",+ "kind": 16384,+ "kindString": "Constructor signature",+ "flags": {},+ "comment": {+ "shortText": "Create a new client for use in the browser."},- "signatures": [+ "parameters": [{- "id": 228,- "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": 229,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The phone number of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 230,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The password of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 231,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 232,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "id": 202,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 203,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 210,+ "name": "autoRefreshToken",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "comment": {+ "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring."+ },+ "sources": [{- "id": 233,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 110,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }+ "fileName": "src/GoTrueClient.ts",+ "line": 75,+ "character": 4}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ },+ {+ "id": 213,+ "name": "cookieOptions",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 233- ]+ "fileName": "src/GoTrueClient.ts",+ "line": 78,+ "character": 4}],+ "type": {+ "type": "reference",+ "id": 439,+ "name": "CookieOptions"+ }+ },+ {+ "id": 209,+ "name": "detectSessionInUrl",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."+ },"sources": [{- "fileName": "GoTrueApi.ts",- "line": 109,- "character": 12+ "fileName": "src/GoTrueClient.ts",+ "line": 74,+ "character": 4}- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 234,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ },+ {+ "id": 214,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 235,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata.\n"- },- "sources": [+ "fileName": "src/GoTrueClient.ts",+ "line": 79,+ "character": 4+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 215,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "signatures": [{- "fileName": "GoTrueApi.ts",- "line": 112,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"+ "id": 216,+ "name": "__type",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "A custom fetch implementation.\n"},- {+ "parameters": [+ {+ "id": 217,+ "name": "input",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "RequestInfo"+ }+ },+ {+ "id": 218,+ "name": "init",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {+ "isOptional": true+ },+ "type": {+ "type": "reference",+ "name": "RequestInit"+ }+ }+ ],+ "type": {"type": "reference",- "id": 58,- "name": "User"- },+ "typeArguments": [+ {+ "type": "reference",+ "name": "Response"+ }+ ],+ "name": "Promise"+ }+ }+ ]+ }+ }+ },+ {+ "id": 205,+ "name": "headers",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Any additional headers to send to the GoTrue server."+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 73,+ "character": 4+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 206,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 207,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [{- "type": "intrinsic",- "name": "null"+ "id": 208,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- },+ }+ }+ },+ {+ "id": 212,+ "name": "localStorage",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {},+ "sources": [{- "id": 236,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 112,- "character": 49- }- ],- "type": {- "type": "union",- "types": [+ "fileName": "src/GoTrueClient.ts",+ "line": 77,+ "character": 4+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "typeArguments": [{"type": "reference",- "id": 186,- "name": "ApiError"+ "name": "Storage"},{- "type": "intrinsic",- "name": "null"+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "getItem"+ },+ {+ "type": "literal",+ "value": "setItem"+ },+ {+ "type": "literal",+ "value": "removeItem"+ }+ ]}- ]+ ],+ "name": "Pick"}- }- ],- "groups": [+ ],+ "name": "PromisifyMethods"+ }+ },+ {+ "id": 211,+ "name": "persistSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Set to \"true\" if you want to automatically save the user session into local storage."+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 235,- 236- ]+ "fileName": "src/GoTrueClient.ts",+ "line": 76,+ "character": 4}],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ },+ {+ "id": 204,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The URL of the GoTrue server."+ },"sources": [{- "fileName": "GoTrueApi.ts",- "line": 112,- "character": 13+ "fileName": "src/GoTrueClient.ts",+ "line": 72,+ "character": 4}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 210,+ 213,+ 209,+ 214,+ 205,+ 212,+ 211,+ 204]}- }- ],- "name": "Promise"- }+ ]+ }+ }}],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 106,- "character": 23- }- ]- },+ "type": {+ "type": "reference",+ "id": 199,+ "name": "default"+ }+ }+ ]+ },+ {+ "id": 219,+ "name": "api",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "comment": {+ "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."+ },+ "sources": [{- "id": 314,- "name": "updateUser",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueClient.ts",+ "line": 44,+ "character": 2+ }+ ],+ "type": {+ "type": "reference",+ "id": 1,+ "name": "default"+ }+ },+ {+ "id": 222,+ "name": "autoRefreshToken",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 54,+ "character": 12+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ },+ {+ "id": 221,+ "name": "currentSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "comment": {+ "shortText": "The session object for the currently logged in user or null."+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 52,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "signatures": [- {- "id": 315,- "name": "updateUser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Updates the user data."+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 220,+ "name": "currentUser",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "comment": {+ "shortText": "The currently logged in user or null."+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 48,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 224,+ "name": "localStorage",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 56,+ "character": 12+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "name": "Storage"},- "parameters": [- {- "id": 316,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true+ {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "getItem"},- "comment": {- "text": "A valid, logged-in JWT."+ {+ "type": "literal",+ "value": "setItem"},- "type": {- "type": "intrinsic",- "name": "string"+ {+ "type": "literal",+ "value": "removeItem"}- },- {- "id": 317,- "name": "attributes",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The data you want to update.\n"+ ]+ }+ ],+ "name": "Pick"+ }+ ],+ "name": "PromisifyMethods"+ }+ },+ {+ "id": 223,+ "name": "persistSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 55,+ "character": 12+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ },+ {+ "id": 226,+ "name": "refreshTokenTimer",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 58,+ "character": 12+ }+ ],+ "type": {+ "type": "reference",+ "name": "Timeout"+ }+ },+ {+ "id": 225,+ "name": "stateChangeEmitters",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 57,+ "character": 12+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "intrinsic",+ "name": "string"+ },+ {+ "type": "reference",+ "id": 431,+ "name": "Subscription"+ }+ ],+ "name": "Map"+ },+ "defaultValue": "..."+ },+ {+ "id": 368,+ "name": "_callRefreshToken",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 613,+ "character": 16+ }+ ],+ "signatures": [+ {+ "id": 369,+ "name": "_callRefreshToken",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [+ {+ "id": 370,+ "name": "refresh_token",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "intrinsic",+ "name": "undefined"},- "type": {- "type": "reference",- "id": 82,- "name": "UserAttributes"+ {+ "type": "intrinsic",+ "name": "string"}- }- ],- "type": {- "type": "reference",- "typeArguments": [+ ]+ },+ "defaultValue": "..."+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [{"type": "reflection","declaration": {- "id": 318,+ "id": 371,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 320,+ "id": 372,"name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 38- }- ],+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "reference",+ "id": 393,+ "name": "Session"}},{- "id": 321,+ "id": 373,"name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 58- }- ],+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 319,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "defaultValue": "null"}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 320,- 321,- 319+ 372,+ 373]}- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 13- }]}- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 338,- "character": 18- }- ]- },- {- "id": 261,- "name": "verifyMobileOTP",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 262,- "name": "verifyMobileOTP",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Send User supplied Mobile OTP to be verified"- },- "parameters": [- {- "id": 263,- "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": 264,- "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": 265,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true},- "type": {+ {"type": "reflection","declaration": {- "id": 266,+ "id": 374,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 267,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true+ "id": 375,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 197,- "character": 16- }- ],+ "defaultValue": "null"+ },+ {+ "id": 376,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "type": "reference",+ "name": "ApiError"+ },+ "defaultValue": "..."}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 267+ 375,+ 376]}- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 196,- "character": 12- }]}- },- "defaultValue": "{}"- }- ],+ }+ ]+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 312,+ "name": "_handleEmailSignIn",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 484,+ "character": 16+ }+ ],+ "signatures": [+ {+ "id": 313,+ "name": "_handleEmailSignIn",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [+ {+ "id": 314,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 268,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 269,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 199,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 315,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 316,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 317,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 318,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 488,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 318+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [+ {+ "type": "reflection",+ "declaration": {+ "id": 319,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 320,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 323,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "null"+ "type": "reference",+ "name": "ApiError"}]}},{- "id": 270,+ "id": 322,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 321,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 320,+ 323,+ 322,+ 321+ ]+ }+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 324,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 325,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ },+ {+ "id": 328,"name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 199,- "character": 49- }- ],+ "defaultValue": "null"+ },+ {+ "id": 327,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ },+ "defaultValue": "data"+ },+ {+ "id": 326,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {"type": "union","types": [{- "type": "reference",- "id": 186,- "name": "ApiError"+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "null"+ "type": "reference",+ "id": 401,+ "name": "User"}]- }+ },+ "defaultValue": "data.user"}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 269,- 270+ 325,+ 328,+ 327,+ 326]}- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 199,- "character": 13- }]}}- ],- "name": "Promise"+ ]}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 193,- "character": 23- }- ]- }- ],- "groups": [- {- "title": "Constructors",- "kind": 512,- "children": [- 196- ]- },- {- "title": "Properties",- "kind": 1024,- "children": [- 195,- 191,- 190- ]- },- {- "title": "Methods",- "kind": 2048,- "children": [- 291,- 322,- 347,- 300,- 307,- 340,- 271,- 330,- 281,- 244,- 254,- 336,- 217,- 237,- 295,- 206,- 227,- 314,- 261- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 12,- "character": 30+ ],+ "name": "Promise"+ }}]},{- "id": 186,- "name": "ApiError",- "kind": 256,- "kindString": "Interface",+ "id": 329,+ "name": "_handlePhoneSignIn",+ "kind": 2048,+ "kindString": "Method","flags": {- "isExported": true+ "isPrivate": true},- "children": [+ "sources": [{- "id": 187,- "name": "message",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 8,- "character": 9- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },+ "fileName": "src/GoTrueClient.ts",+ "line": 508,+ "character": 16+ }+ ],+ "signatures": [{- "id": 188,- "name": "status",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 9,- "character": 8+ "id": 330,+ "name": "_handlePhoneSignIn",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [+ {+ "id": 331,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 332,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}],"type": {- "type": "intrinsic",- "name": "number"- }- }- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 187,- 188- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 7,- "character": 25- }- ]- }- ],- "groups": [- {- "title": "Classes",- "kind": 128,- "children": [- 189- ]- },- {- "title": "Interfaces",- "kind": 256,- "children": [- 186- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 362,- "name": "\"GoTrueClient\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",- "children": [- {- "id": 363,- "name": "GoTrueClient",- "kind": 128,- "kindString": "Class",- "flags": {- "isExported": true- },- "children": [- {- "id": 372,- "name": "constructor",- "kind": 512,- "kindString": "Constructor",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Create a new client for use in the browser."- },- "signatures": [- {- "id": 373,- "name": "new GoTrueClient",- "kind": 16384,- "kindString": "Constructor signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Create a new client for use in the browser."- },- "parameters": [- {- "id": 374,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [+ {"type": "reflection","declaration": {- "id": 375,+ "id": 333,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 382,- "name": "autoRefreshToken",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Set to \"true\" if you want to automatically refresh the token before expiring."+ "id": 334,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 73,- "character": 20- }- ],+ "defaultValue": "null"+ },+ {+ "id": 337,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {"type": "union","types": [{- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "true"+ "type": "reference",+ "name": "ApiError"}]}},{- "id": 385,- "name": "cookieOptions",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true+ "id": 336,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},- "comment": {- "text": "\n"+ "defaultValue": "null"+ },+ {+ "id": 335,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 76,- "character": 17- }- ],+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 334,+ 337,+ 336,+ 335+ ]+ }+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 338,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 339,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {"type": "reference",- "id": 97,- "name": "CookieOptions"+ "id": 393,+ "name": "Session"}},{- "id": 381,- "name": "detectSessionInUrl",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true+ "id": 342,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},- "comment": {- "text": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."+ "defaultValue": "null"+ },+ {+ "id": 341,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 72,- "character": 22- }- ],+ "defaultValue": "data"+ },+ {+ "id": 340,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {"type": "union","types": [{- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "true"+ "type": "reference",+ "id": 401,+ "name": "User"}]- }- },- {- "id": 377,- "name": "headers",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Any additional headers to send to the GoTrue server."},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 71,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reflection",- "declaration": {- "id": 378,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 379,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 380,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ]- }- }- ]- }- },- {- "id": 384,- "name": "localStorage",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 75,- "character": 16- }- ],- "type": {- "type": "reference",- "id": 578,- "name": "SupportedStorage"- }- },- {- "id": 383,- "name": "persistSession",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Set to \"true\" if you want to automatically save the user session into local storage."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 74,- "character": 18- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- },- {- "id": 376,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "The URL of the GoTrue server."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 70,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "defaultValue": "data.user"}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 382,- 385,- 381,- 377,- 384,- 383,- 376+ 339,+ 342,+ 341,+ 340]}- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 69,- "character": 22- }]}}- }- ],- "type": {- "type": "reference",- "id": 363,- "name": "GoTrueClient"+ ]}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 57,- "character": 61- }- ]- },- {- "id": 364,- "name": "api",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 43,- "character": 5- }- ],- "type": {- "type": "reference",- "id": 189,- "name": "GoTrueApi"+ ],+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 343,+ "name": "_handleProviderSignIn",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [{- "id": 367,- "name": "autoRefreshToken",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 53,- "character": 28- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- },+ "fileName": "src/GoTrueClient.ts",+ "line": 524,+ "character": 10+ }+ ],+ "signatures": [{- "id": 366,- "name": "currentSession",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "comment": {- "shortText": "The session object for the currently logged in user or null."- },- "sources": [+ "id": 344,+ "name": "_handleProviderSignIn",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [{- "fileName": "GoTrueClient.ts",- "line": 51,- "character": 26- }- ],- "type": {- "type": "union",- "types": [- {+ "id": 345,+ "name": "provider",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {"type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"+ "id": 391,+ "name": "Provider"}- ]- }- },- {- "id": 365,- "name": "currentUser",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "comment": {- "shortText": "The currently logged in user or null."- },- "sources": [+ },{- "fileName": "GoTrueClient.ts",- "line": 47,- "character": 23+ "id": 346,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 347,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 348,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 527,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 349,+ "name": "scopes",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 528,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 348,+ 349+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {"type": "union","types": [{- "type": "reference",- "id": 58,- "name": "User"+ "type": "reflection",+ "declaration": {+ "id": 350,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 353,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 356,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 351,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 391,+ "name": "Provider"+ }+ },+ {+ "id": 354,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 352,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 355,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 353,+ 356,+ 351,+ 354,+ 352,+ 355+ ]+ }+ ]+ }},{- "type": "intrinsic",- "name": "null"+ "type": "reflection",+ "declaration": {+ "id": 357,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 358,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 361,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "ApiError"+ },+ "defaultValue": "..."+ },+ {+ "id": 362,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "undefined"+ }+ },+ {+ "id": 360,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 363,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "undefined"+ }+ },+ {+ "id": 359,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 358,+ 361,+ 362,+ 360,+ 363,+ 359+ ]+ }+ ]+ }}]}- },+ }+ ]+ },+ {+ "id": 377,+ "name": "_notifyAllSubscribers",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [{- "id": 369,- "name": "localStorage",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [+ "fileName": "src/GoTrueClient.ts",+ "line": 631,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 378,+ "name": "_notifyAllSubscribers",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [{- "fileName": "GoTrueClient.ts",- "line": 55,- "character": 24+ "id": 379,+ "name": "event",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 392,+ "name": "AuthChangeEvent"+ }}],"type": {- "type": "reference",- "id": 578,- "name": "SupportedStorage"+ "type": "intrinsic",+ "name": "void"}- },+ }+ ]+ },+ {+ "id": 383,+ "name": "_persistSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [{- "id": 368,- "name": "persistSession",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [+ "fileName": "src/GoTrueClient.ts",+ "line": 658,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 384,+ "name": "_persistSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [{- "fileName": "GoTrueClient.ts",- "line": 54,- "character": 26+ "id": 385,+ "name": "currentSession",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }}],"type": {"type": "intrinsic",- "name": "boolean"+ "name": "void"}- },- {- "id": 371,- "name": "refreshTokenTimer",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true,- "isOptional": true+ }+ ]+ },+ {+ "id": 366,+ "name": "_recoverAndRefresh",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 577,+ "character": 16+ }+ ],+ "signatures": [+ {+ "id": 367,+ "name": "_recoverAndRefresh",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native."},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 57,- "character": 29- }- ],"type": {"type": "reference","typeArguments": [{- "type": "query",- "queryType": {- "type": "reference",- "name": "setTimeout"- }+ "type": "union",+ "types": [+ {+ "type": "intrinsic",+ "name": "undefined"+ },+ {+ "type": "literal",+ "value": null+ }+ ]}],- "name": "ReturnType"+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 364,+ "name": "_recoverSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [{- "id": 370,- "name": "stateChangeEmitters",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true+ "fileName": "src/GoTrueClient.ts",+ "line": 553,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 365,+ "name": "_recoverSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor."},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 56,- "character": 31- }- ],"type": {- "type": "reference",- "typeArguments": [+ "type": "union",+ "types": [{"type": "intrinsic",- "name": "string"+ "name": "undefined"},{- "type": "reference",- "id": 87,- "name": "Subscription"+ "type": "literal",+ "value": null+ }+ ]+ }+ }+ ]+ },+ {+ "id": 386,+ "name": "_removeSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 663,+ "character": 16+ }+ ],+ "signatures": [+ {+ "id": 387,+ "name": "_removeSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "intrinsic",+ "name": "void"}],- "name": "Map"+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 380,+ "name": "_saveSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 639,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 381,+ "name": "_saveSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible"},- "defaultValue": "new Map()"- },+ "parameters": [+ {+ "id": 382,+ "name": "session",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 388,+ "name": "_startAutoRefreshToken",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [{- "id": 538,- "name": "_callRefreshToken",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true+ "fileName": "src/GoTrueClient.ts",+ "line": 674,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 389,+ "name": "_startAutoRefreshToken",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Clear and re-create refresh token timer"},- "signatures": [+ "parameters": [{- "id": 539,- "name": "_callRefreshToken",- "kind": 4096,- "kindString": "Call signature",+ "id": 390,+ "name": "value",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "time intervals in milliseconds\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "number"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 290,+ "name": "getSessionFromUrl",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 393,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 291,+ "name": "getSessionFromUrl",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Gets the session data from a URL string"+ },+ "parameters": [+ {+ "id": 292,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter","flags": {- "isExported": true+ "isOptional": true},- "parameters": [- {- "id": 540,- "name": "refresh_token",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 293,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 294,+ "name": "storeSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true},- {+ "comment": {+ "shortText": "Optionally store the session in the browser\n"+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 394,+ "character": 4+ }+ ],+ "type": {"type": "intrinsic",- "name": "string"+ "name": "boolean"}- ]- },- "defaultValue": "this.currentSession?.refresh_token"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 294+ ]+ }+ ]}- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 541,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 295,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 296,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 395,+ "character": 16+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "children": [- {- "id": 542,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 621,- "character": 19- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- },- {- "id": 543,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 621,- "character": 26- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 542,- 543- ]- }- ]+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 297,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 395,+ "character": 38}- },- {- "type": "reflection",- "declaration": {- "id": 544,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "children": [- {- "id": 545,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 623,- "character": 19- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 546,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 296,+ 297+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 302,+ "name": "onAuthStateChange",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 464,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 303,+ "name": "onAuthStateChange",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Receive a notification every time an auth event happens.",+ "returns": "A subscription object which can be used to unsubscribe itself.\n"+ },+ "parameters": [+ {+ "id": 304,+ "name": "callback",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 305,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "signatures": [+ {+ "id": 306,+ "name": "__type",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [+ {+ "id": 307,+ "name": "event",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 392,+ "name": "AuthChangeEvent"+ }+ },+ {+ "id": 308,+ "name": "session",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 623,- "character": 32- }- ],- "type": {+ {"type": "reference",- "id": 186,- "name": "ApiError"- },- "defaultValue": "e as ApiError"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 545,- 546- ]- }- ]+ "id": 393,+ "name": "Session"+ }+ ]+ }}+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"}- ]- }- ],- "name": "Promise"+ }+ ]+ }}}],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 609,- "character": 33- }- ]- },- {- "id": 484,- "name": "_handleEmailSignIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 485,- "name": "_handleEmailSignIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 309,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "id": 486,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },+ "id": 310,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 465,+ "character": 4+ }+ ],"type": {- "type": "intrinsic",- "name": "string"+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 431,+ "name": "Subscription"+ }+ ]}},{- "id": 487,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },+ "id": 311,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 466,+ "character": 4+ }+ ],"type": {- "type": "intrinsic",- "name": "string"+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]}- },+ }+ ],+ "groups": [{- "id": 488,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 489,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [+ "title": "Properties",+ "kind": 1024,+ "children": [+ 310,+ 311+ ]+ }+ ]+ }+ }+ }+ ]+ },+ {+ "id": 268,+ "name": "refreshSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 306,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 269,+ "name": "refreshSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Force refreshes the session including the user data in case it was updated in a different session."+ },+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 270,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 271,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 490,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 484,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/GoTrueClient.ts",+ "line": 307,+ "character": 4}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 273,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 490- ]+ "fileName": "src/GoTrueClient.ts",+ "line": 309,+ "character": 4}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 272,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 483,- "character": 12+ "fileName": "src/GoTrueClient.ts",+ "line": 308,+ "character": 4}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 271,+ 273,+ 272]}- },- "defaultValue": "{}"+ ]}- ],- "type": {+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 266,+ "name": "session",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 299,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 267,+ "name": "session",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Returns the session data, if there is an active session."+ },+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {"type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 491,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 492,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 39- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 495,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 79- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 186,- "name": "ApiError"- }- ]- }- },- {- "id": 494,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 66- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 493,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 51- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 492,- 495,- 494,- 493- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 496,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 497,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 19- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- },- {- "id": 500,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 58- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 499,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 45- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- },- "defaultValue": "data"- },- {- "id": 498,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 25- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 58,- "name": "User"- }- ]- },- "defaultValue": "data.user"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 497,- 500,- 499,- 498- ]- }- ]- }- }- ]- }- ],- "name": "Promise"+ "id": 393,+ "name": "Session"}- }- ],- "sources": [+ ]+ }+ }+ ]+ },+ {+ "id": 287,+ "name": "setAuth",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 378,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 288,+ "name": "setAuth",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests."+ },+ "parameters": [{- "fileName": "GoTrueClient.ts",- "line": 480,- "character": 34+ "id": 289,+ "name": "access_token",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "a jwt access token\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- ]- },+ ],+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ }+ ]+ },+ {+ "id": 281,+ "name": "setSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 501,- "name": "_handlePhoneSignIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true+ "fileName": "src/GoTrueClient.ts",+ "line": 354,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 282,+ "name": "setSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sets the session data from refresh_token and returns current Session and Error"},- "signatures": [+ "parameters": [{- "id": 502,- "name": "_handlePhoneSignIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true+ "id": 283,+ "name": "refresh_token",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "a JWT token\n"},- "parameters": [- {- "id": 503,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 504,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 505,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 506,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 39- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 509,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 79- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 186,- "name": "ApiError"- }- ]- }- },- {- "id": 508,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 66- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 507,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 51- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 506,- 509,- 508,- 507- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 510,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 511,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 19- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- },- {- "id": 514,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 58- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 513,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 45- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- },- "defaultValue": "data"- },- {- "id": 512,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 25- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 58,- "name": "User"- }- ]- },- "defaultValue": "data.user"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 511,- 514,- 513,- 512- ]- }- ]- }- }- ]- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 504,- "character": 34- }- ]- },- {- "id": 515,- "name": "_handleProviderSignIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 516,- "name": "_handleProviderSignIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 517,- "name": "provider",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 518,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 519,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 520,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 523,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 521,- "name": "scopes",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 524,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 520,- 521- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 522,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 522,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 525,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 34- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 528,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 74- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 523,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 23- }- ],- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 526,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 49- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 524,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 28- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 527,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 61- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 525,- 528,- 523,- 526,- 524,- 527- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 529,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 530,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 19- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 533,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 59- }- ],- "type": {- "type": "reference",- "id": 186,- "name": "ApiError"- },- "defaultValue": "e as ApiError"- },- {- "id": 532,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 46- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 531,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 31- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 530,- 533,- 532,- 531- ]- }- ]- }- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 520,- "character": 31- }- ]- },- {- "id": 547,- "name": "_notifyAllSubscribers",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 548,- "name": "_notifyAllSubscribers",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 549,- "name": "event",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 113,- "name": "AuthChangeEvent"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 627,- "character": 31- }- ]- },- {- "id": 553,- "name": "_persistSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 554,- "name": "_persistSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 555,- "name": "currentSession",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 654,- "character": 25- }- ]- },- {- "id": 536,- "name": "_recoverAndRefresh",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 537,- "name": "_recoverAndRefresh",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native."- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 573,- "character": 34- }- ]- },- {- "id": 534,- "name": "_recoverSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 535,- "name": "_recoverSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor."- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 549,- "character": 25- }- ]- },- {- "id": 556,- "name": "_removeSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 557,- "name": "_removeSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "void"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 659,- "character": 30- }- ]- },- {- "id": 550,- "name": "_saveSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 551,- "name": "_saveSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible"- },- "parameters": [- {- "id": 552,- "name": "session",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 635,- "character": 22- }- ]- },- {- "id": 558,- "name": "_startAutoRefreshToken",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 559,- "name": "_startAutoRefreshToken",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Clear and re-create refresh token timer"- },- "parameters": [- {- "id": 560,- "name": "value",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "time intervals in milliseconds\n"- },- "type": {- "type": "intrinsic",- "name": "number"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 670,- "character": 32- }- ]- },- {- "id": 462,- "name": "getSessionFromUrl",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 463,- "name": "getSessionFromUrl",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Gets the session data from a URL string"- },- "parameters": [- {- "id": 464,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reflection",- "declaration": {- "id": 465,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 466,- "name": "storeSession",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Optionally store the session in the browser\n"- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 390,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 466- ]- }- ]- }- }- ]- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 467,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 468,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 391,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 469,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 391,- "character": 43- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 468,- 469- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 391,- "character": 14- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 389,- "character": 25- }- ]- },- {- "id": 474,- "name": "onAuthStateChange",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 475,- "name": "onAuthStateChange",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Receive a notification every time an auth event happens.",- "returns": "A subscription object which can be used to unsubscribe itself.\n"- },- "parameters": [- {- "id": 476,- "name": "callback",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 477,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 478,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 479,- "name": "event",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 113,- "name": "AuthChangeEvent"- }- },- {- "id": 480,- "name": "session",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 460,- "character": 29- }- ]- }- }- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 481,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 482,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 461,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 87,- "name": "Subscription"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 483,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 462,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 482,- 483- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 460,- "character": 89- }- ]- }- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 460,- "character": 19- }- ]- },- {- "id": 440,- "name": "refreshSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 441,- "name": "refreshSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Force refreshes the session including the user data in case it was updated in a different session."- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 442,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 443,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 303,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 445,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 305,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 444,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 304,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 443,- 445,- 444- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 302,- "character": 34- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 302,- "character": 22- }- ]- },- {- "id": 438,- "name": "session",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 439,- "name": "session",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Returns the session data, if there is an active session."- },- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 295,- "character": 9- }- ]- },- {- "id": 459,- "name": "setAuth",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 460,- "name": "setAuth",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests."- },- "parameters": [- {- "id": 461,- "name": "access_token",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "a jwt access token\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 374,- "character": 9- }- ]- },- {- "id": 453,- "name": "setSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 454,- "name": "setSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Sets the session data from refresh_token and returns current Session and Error"- },- "parameters": [- {- "id": 455,- "name": "refresh_token",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "a JWT token\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 456,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 458,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 352,- "character": 45- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 457,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 352,- "character": 22- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 458,- 457- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 352,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 350,- "character": 18- }- ]- },- {- "id": 402,- "name": "signIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 403,- "name": "signIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Log in an existing user, or login via a third-party provider."- },- "parameters": [- {- "id": 404,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 405,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 406,- "name": "email",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's email address."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 408,- "name": "password",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 28- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 407,- "name": "phone",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 18- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 410,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "One of the providers supported by GoTrue."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 52- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "stringLiteral",- "value": "azure"- },- {- "type": "stringLiteral",- "value": "bitbucket"- },- {- "type": "stringLiteral",- "value": "facebook"- },- {- "type": "stringLiteral",- "value": "github"- },- {- "type": "stringLiteral",- "value": "gitlab"- },- {- "type": "stringLiteral",- "value": "google"- },- {- "type": "stringLiteral",- "value": "twitter"- },- {- "type": "stringLiteral",- "value": "apple"- },- {- "type": "stringLiteral",- "value": "discord"- },- {- "type": "stringLiteral",- "value": "twitch"- },- {- "type": "stringLiteral",- "value": "spotify"- },- {- "type": "stringLiteral",- "value": "slack"- }- ]- }- },- {- "id": 409,- "name": "refreshToken",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid refresh token that was returned on login."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 406,- 408,- 407,- 410,- 409- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 174,- "character": 15- }- ]- }- }- },- {- "id": 411,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 412,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 413,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 177,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 414,- "name": "scopes",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 178,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 413,- 414- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 176,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 415,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 421,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 186,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 420,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 185,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 418,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 183,- "character": 12- }- ],- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 416,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 181,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 419,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 184,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "string"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 417,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 182,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 421,- 420,- 418,- 416,- 419,- 417- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 180,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 174,- "character": 14- }- ]- },- {- "id": 470,- "name": "signOut",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 471,- "name": "signOut",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",- "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 472,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 473,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 445,- "character": 34- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 473- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 445,- "character": 27- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 445,- "character": 15- }- ]- },- {- "id": 386,- "name": "signUp",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 387,- "name": "signUp",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Creates a new user."- },- "parameters": [- {- "id": 388,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 389,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 390,- "name": "email",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's email address."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 112,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 391,- "name": "password",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 112,- "character": 21- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 392,- "name": "phone",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's phone number."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 112,- "character": 28- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 390,- 391,- 392- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 111,- "character": 15- }- ]- }- }- },- {- "id": 393,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 394,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 396,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 115,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 395,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 114,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 396,- 395- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 113,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 397,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 401,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata.\n"- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 121,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 400,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 120,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 399,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 119,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 398,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 118,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 401,- 400,- 399,- 398- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 117,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 111,- "character": 14- }- ]- },- {- "id": 446,- "name": "update",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 447,- "name": "update",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Updates user data, if there is a logged in user."- },- "parameters": [- {- "id": 448,- "name": "attributes",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 82,- "name": "UserAttributes"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 449,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 450,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 452,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 451,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 450,- 452,- 451- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 323,- "character": 14- }- ]- },- {- "id": 436,- "name": "user",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 437,- "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": 288,- "character": 6- }- ]- },- {- "id": 422,- "name": "verifyOTP",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 423,- "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": 424,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 425,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 426,- "name": "phone",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's phone number."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 240,- "character": 11- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 427,- "name": "token",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 240,- "character": 18- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 426,- 427- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 239,- "character": 18- }- ]- }- }- },- {- "id": 428,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 429,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 430,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 242,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 430- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 241,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 431,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 435,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 248,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 434,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 247,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 433,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 246,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 432,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 245,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 435,- 434,- 433,- 432- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 244,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 239,- "character": 17- }- ]- }- ],- "groups": [- {- "title": "Constructors",- "kind": 512,- "children": [- 372- ]- },- {- "title": "Properties",- "kind": 1024,- "children": [- 364,- 367,- 366,- 365,- 369,- 368,- 371,- 370- ]- },- {- "title": "Methods",- "kind": 2048,- "children": [- 538,- 484,- 501,- 515,- 547,- 553,- 536,- 534,- 556,- 550,- 558,- 462,- 474,- 440,- 438,- 459,- 453,- 402,- 470,- 386,- 446,- 436,- 422- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 38,- "character": 33- }- ]- },- {- "id": 569,- "name": "AnyFunction",- "kind": 4194304,- "kindString": "Type alias",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 27,- "character": 16- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 570,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "signatures": [- {- "id": 571,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "parameters": [- {- "id": 572,- "name": "args",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isRest": true- },- "type": {- "type": "array",- "elementType": {- "type": "intrinsic",- "name": "any"- }- }- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 27,- "character": 18- }- ]- }- }- },- {- "id": 573,- "name": "MaybePromisify",- "kind": 4194304,- "kindString": "Type alias",- "flags": {},- "typeParameter": [- {- "id": 574,- "name": "T",- "kind": 131072,- "kindString": "Type parameter",- "flags": {}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 28,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "typeParameter",- "name": "T"- },- {- "type": "reference",- "typeArguments": [- {- "type": "typeParameter",- "name": "T"- }- ],- "name": "Promise"- }- ]- }- },- {- "id": 575,- "name": "PromisifyMethods",- "kind": 4194304,- "kindString": "Type alias",- "flags": {},- "typeParameter": [- {- "id": 576,- "name": "T",- "kind": 131072,- "kindString": "Type parameter",- "flags": {}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 30,- "character": 21- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 577,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 30,- "character": 26- }- ]- }- }- },- {- "id": 578,- "name": "SupportedStorage",- "kind": 4194304,- "kindString": "Type alias",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 36,- "character": 21- }- ],- "type": {- "type": "reference",- "id": 575,- "typeArguments": [- {- "type": "reference",- "typeArguments": [- {- "type": "reference",- "name": "Storage"- },- {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "getItem"- },- {- "type": "stringLiteral",- "value": "setItem"- },- {- "type": "stringLiteral",- "value": "removeItem"- }- ]- }- ],- "name": "Pick"- }- ],- "name": "PromisifyMethods"- }- },- {- "id": 561,- "name": "DEFAULT_OPTIONS",- "kind": 2097152,- "kindString": "Object literal",- "flags": {- "isConst": true- },- "children": [- {- "id": 563,- "name": "autoRefreshToken",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 21,- "character": 18- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- },- "defaultValue": "true"- },- {- "id": 565,- "name": "detectSessionInUrl",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 23,- "character": 20- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- },- "defaultValue": "true"- },- {- "id": 566,- "name": "headers",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 24,- "character": 9- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 567,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "children": [- {- "id": 568,- "name": "X-Client-Info",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/constants.ts",- "line": 4,- "character": 48- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "`gotrue-js/${version}`"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 568- ]- }- ]- }- },- "defaultValue": "DEFAULT_HEADERS"- },- {- "id": 564,- "name": "persistSession",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 22,- "character": 16- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- },- "defaultValue": "true"- },- {- "id": 562,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 20,- "character": 5- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "GOTRUE_URL"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 563,- 565,- 566,- 564,- 562- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 19,- "character": 21- }- ],- "type": {- "type": "intrinsic",- "name": "object"- }- }- ],- "groups": [- {- "title": "Classes",- "kind": 128,- "children": [- 363- ]- },- {- "title": "Type aliases",- "kind": 4194304,- "children": [- 569,- 573,- 575,- 578- ]- },- {- "title": "Object literals",- "kind": 2097152,- "children": [- 561- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 579,- "name": "\"index\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",- "children": [- {- "id": 581,- "name": "AuthChangeEvent",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 113- },- {- "id": 586,- "name": "CookieOptions",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 97- },- {- "id": 580,- "name": "Provider",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 112- },- {- "id": 582,- "name": "Session",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 50- },- {- "id": 585,- "name": "Subscription",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 87- },- {- "id": 583,- "name": "User",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 58- },- {- "id": 584,- "name": "UserAttributes",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 82- },- {- "id": 587,- "name": "UserCredentials",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 103- },- {- "id": 588,- "name": "VerifyOTPParams",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 109- }- ],- "groups": [- {- "title": "References",- "kind": 16777216,- "children": [- 581,- 586,- 580,- 582,- 585,- 583,- 584,- 587,- 588- ]- }- ],- "sources": [- {- "fileName": "index.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 116,- "name": "\"lib/constants\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",- "children": [- {- "id": 118,- "name": "AUDIENCE",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 3,- "character": 21- }- ],- "type": {- "type": "stringLiteral",- "value": ""- },- "defaultValue": "\"\""- },- {- "id": 121,- "name": "EXPIRY_MARGIN",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 5,- "character": 26- }- ],- "type": {- "type": "intrinsic",- "name": "number"- },- "defaultValue": "60 * 1000"- },- {- "id": 117,- "name": "GOTRUE_URL",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 2,- "character": 23- }- ],- "type": {- "type": "stringLiteral",- "value": "http://localhost:9999"- },- "defaultValue": "\"http://localhost:9999\""- },- {- "id": 122,- "name": "STORAGE_KEY",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 6,- "character": 24- }- ],- "type": {- "type": "stringLiteral",- "value": "supabase.auth.token"- },- "defaultValue": "\"supabase.auth.token\""- },- {- "id": 123,- "name": "COOKIE_OPTIONS",- "kind": 2097152,- "kindString": "Object literal",- "flags": {- "isExported": true,- "isConst": true- },- "children": [- {- "id": 126,- "name": "domain",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 10,- "character": 8- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"\""- },- {- "id": 125,- "name": "lifetime",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 9,- "character": 10- }- ],- "type": {- "type": "intrinsic",- "name": "number"- },- "defaultValue": "60 * 60 * 8"- },- {- "id": 124,- "name": "name",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 8,- "character": 6- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"sb:token\""- },- {- "id": 127,- "name": "path",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 11,- "character": 6- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"/\""- },- {- "id": 128,- "name": "sameSite",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 12,- "character": 10- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"lax\""- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 126,- 125,- 124,- 127,- 128- ]- }- ],- "sources": [- {- "fileName": "lib/constants.ts",- "line": 7,- "character": 27- }- ],- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 119,- "name": "DEFAULT_HEADERS",- "kind": 2097152,- "kindString": "Object literal",- "flags": {- "isExported": true,- "isConst": true- },- "children": [- {- "id": 120,- "name": "X-Client-Info",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 4,- "character": 48- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "`gotrue-js/${version}`"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 120- ]- }- ],- "sources": [- {- "fileName": "lib/constants.ts",- "line": 4,- "character": 28- }- ],- "type": {- "type": "intrinsic",- "name": "object"- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 118,- 121,- 117,- 122- ]- },- {- "title": "Object literals",- "kind": 2097152,- "children": [- 123,- 119- ]- }- ],- "sources": [- {- "fileName": "lib/constants.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 129,- "name": "\"lib/cookies\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",- "children": [- {- "id": 130,- "name": "Cookie",- "kind": 4194304,- "kindString": "Type alias",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 1,- "character": 11- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 131,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "children": [- {- "id": 135,- "name": "domain",- "kind": 32,- "kindString": "Variable",- "flags": {- "isOptional": true- },- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 5,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 134,- "name": "maxAge",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 4,- "character": 8- }- ],- "type": {- "type": "intrinsic",- "name": "number"- }- },- {- "id": 132,- "name": "name",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 2,- "character": 6- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 136,- "name": "path",- "kind": 32,- "kindString": "Variable",- "flags": {- "isOptional": true- },- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 6,- "character": 6- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 137,- "name": "sameSite",- "kind": 32,- "kindString": "Variable",- "flags": {- "isOptional": true- },- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 7,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 133,- "name": "value",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 3,- "character": 7- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 135,- 134,- 132,- 136,- 137,- 133- ]- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 1,- "character": 13- }- ]- }- }- },- {- "id": 168,- "name": "deleteCookie",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 169,- "name": "deleteCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 170,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 171,- "name": "res",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 172,- "name": "name",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 165,- "character": 28- }- ]- },- {- "id": 151,- "name": "isSecureEnvironment",- "kind": 64,- "kindString": "Function",- "flags": {},- "signatures": [- {- "id": 152,- "name": "isSecureEnvironment",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "comment": {- "shortText": "Based on the environment and the request we know if a secure cookie can be set."- },- "parameters": [- {- "id": 153,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 113,- "character": 28- }- ]- },- {- "id": 138,- "name": "serialize",- "kind": 64,- "kindString": "Function",- "flags": {},- "signatures": [- {- "id": 139,- "name": "serialize",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "comment": {- "shortText": "Serialize data into a cookie header."- },- "parameters": [- {- "id": 140,- "name": "name",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 141,- "name": "val",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 142,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "reflection",- "declaration": {- "id": 143,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "children": [- {- "id": 145,- "name": "domain",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 18,- "character": 10- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 147,- "name": "expires",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 20,- "character": 11- }- ],- "type": {- "type": "reference",- "name": "Date"- }- },- {- "id": 148,- "name": "httpOnly",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 21,- "character": 12- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- },- {- "id": 144,- "name": "maxAge",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 17,- "character": 10- }- ],- "type": {- "type": "intrinsic",- "name": "number"- }- },- {- "id": 146,- "name": "path",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 19,- "character": 8- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 150,- "name": "sameSite",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 23,- "character": 12- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 149,- "name": "secure",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 22,- "character": 10- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 145,- 147,- 148,- 144,- 146,- 150,- 149- ]- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 16,- "character": 10- }- ]- }- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 13,- "character": 18- }- ]- },- {- "id": 154,- "name": "serializeCookie",- "kind": 64,- "kindString": "Function",- "flags": {},- "signatures": [- {- "id": 155,- "name": "serializeCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "comment": {- "shortText": "Serialize a cookie to a string."- },- "parameters": [- {- "id": 156,- "name": "cookie",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "reference",- "id": 130,- "name": "Cookie"- }- },- {- "id": 157,- "name": "secure",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "boolean"- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 130,- "character": 24- }- ]- },- {- "id": 163,- "name": "setCookie",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 164,- "name": "setCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Set one or more cookies."- },- "parameters": [- {- "id": 165,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 166,- "name": "res",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 167,- "name": "cookie",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 130,- "name": "Cookie"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 161,- "character": 25- }- ]- },- {- "id": 158,- "name": "setCookies",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 159,- "name": "setCookies",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Set one or more cookies."- },- "parameters": [- {- "id": 160,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 161,- "name": "res",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 162,- "name": "cookies",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reference",- "id": 130,- "name": "Cookie"- }- ],- "name": "Array"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 145,- "character": 26- }- ]- }- ],- "groups": [- {- "title": "Type aliases",- "kind": 4194304,- "children": [- 130- ]- },- {- "title": "Functions",- "kind": 64,- "children": [- 168,- 151,- 138,- 154,- 163,- 158- ]- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 1,- "name": "\"lib/fetch\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/fetch.ts",- "children": [- {- "id": 2,- "name": "FetchOptions",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [- {- "id": 3,- "name": "headers",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 4,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reflection",- "declaration": {- "id": 4,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 5,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 6,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ]- }- }- ]- }- },- {- "id": 7,- "name": "noResolveJson",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 7,- "character": 15- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- }- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 3,- 7- ]- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 3,- "character": 29- }- ]- },- {- "id": 8,- "name": "RequestMethodType",- "kind": 4194304,- "kindString": "Type alias",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 10,- "character": 29- }- ],- "type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "GET"- },- {- "type": "stringLiteral",- "value": "POST"- },- {- "type": "stringLiteral",- "value": "PUT"- },- {- "type": "stringLiteral",- "value": "PATCH"- },- {- "type": "stringLiteral",- "value": "DELETE"- }- ]- }- },- {- "id": 9,- "name": "_getErrorMessage",- "kind": 64,- "kindString": "Function",- "flags": {- "isConst": true- },- "signatures": [- {- "id": 10,- "name": "_getErrorMessage",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "parameters": [- {- "id": 11,- "name": "err",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 12,- "character": 22- }- ]- },- {- "id": 16,- "name": "_getRequestParams",- "kind": 64,- "kindString": "Function",- "flags": {- "isConst": true- },- "signatures": [- {- "id": 17,- "name": "_getRequestParams",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "parameters": [- {- "id": 18,- "name": "method",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "reference",- "id": 8,- "name": "RequestMethodType"- }- },- {- "id": 19,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- },- {- "id": 20,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isOptional": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 21,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "indexSignature": [- {- "id": 22,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {},- "parameters": [- {- "id": 23,- "name": "k",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }- }- ]- }- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 27,- "character": 23- }- ]- },- {- "id": 24,- "name": "_handleRequest",- "kind": 64,- "kindString": "Function",- "flags": {},- "signatures": [- {- "id": 25,- "name": "_handleRequest",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "parameters": [- {- "id": 26,- "name": "method",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "reference",- "id": 8,- "name": "RequestMethodType"- }- },- {- "id": 27,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 28,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- },- {- "id": 29,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isOptional": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 40,- "character": 29- }- ]- },- {- "id": 30,- "name": "get",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 31,- "name": "get",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 32,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 33,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 58,- "character": 25- }- ]- },- {- "id": 12,- "name": "handleError",- "kind": 64,- "kindString": "Function",- "flags": {- "isConst": true- },- "signatures": [- {- "id": 13,- "name": "handleError",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "parameters": [- {- "id": 14,- "name": "error",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 15,- "name": "reject",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 15,- "character": 17- }- ]- },- {- "id": 34,- "name": "post",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 35,- "name": "post",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 36,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 37,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 38,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 62,- "character": 26- }- ]- },- {- "id": 39,- "name": "put",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 40,- "name": "put",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 41,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 42,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 43,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 66,- "character": 25- }- ]- },- {- "id": 44,- "name": "remove",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 45,- "name": "remove",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 46,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 47,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 48,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 70,- "character": 28- }- ]- }- ],- "groups": [- {- "title": "Interfaces",- "kind": 256,- "children": [- 2- ]- },- {- "title": "Type aliases",- "kind": 4194304,- "children": [- 8- ]- },- {- "title": "Functions",- "kind": 64,- "children": [- 9,- 16,- 24,- 30,- 12,- 34,- 39,- 44- ]- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 173,- "name": "\"lib/helpers\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",- "children": [- {- "id": 174,- "name": "expiresAt",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 175,- "name": "expiresAt",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 176,- "name": "expiresIn",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "number"- }- }- ],- "type": {- "type": "intrinsic",- "name": "number"- }- }- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 1,- "character": 25- }- ]- },- {- "id": 181,- "name": "getParameterByName",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 182,- "name": "getParameterByName",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 183,- "name": "name",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 184,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 16,- "character": 34- }- ]- },- {- "id": 179,- "name": "isBrowser",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true,- "isConst": true- },- "signatures": [- {- "id": 180,- "name": "isBrowser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "boolean"- }- }- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 14,- "character": 22- }- ]- },- {- "id": 177,- "name": "uuid",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 178,- "name": "uuid",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 6,- "character": 20- }- ]- }- ],- "groups": [- {- "title": "Functions",- "kind": 64,- "children": [- 174,- 181,- 179,- 177- ]- }- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 359,- "name": "\"lib/polyfills\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",- "children": [- {- "id": 360,- "name": "polyfillGlobalThis",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 361,- "name": "polyfillGlobalThis",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "https://mathiasbynens.be/notes/globalthis"- },- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/polyfills.ts",- "line": 4,- "character": 34- }- ]- }- ],- "groups": [- {- "title": "Functions",- "kind": 64,- "children": [- 360- ]- }- ],- "sources": [- {- "fileName": "lib/polyfills.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 49,- "name": "\"lib/types\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",- "children": [- {- "id": 97,- "name": "CookieOptions",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [- {- "id": 100,- "name": "domain",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 102,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 99,- "name": "lifetime",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 100,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "number"- }- ]- }- },- {- "id": 98,- "name": "name",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 98,- "character": 6- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 101,- "name": "path",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 103,- "character": 6- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 102,- "name": "sameSite",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 105,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 100,- 99,- 98,- 101,- 102- ]- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 96,- "character": 30- }- ]- },- {- "id": 50,- "name": "Session",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [- {- "id": 52,- "name": "access_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 24,- "character": 14- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 54,- "name": "expires_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 32,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "number"- }- ]- }- },- {- "id": 53,- "name": "expires_in",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 28,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "number"- }- ]- }- },- {- "id": 51,- "name": "provider_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 23,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "string"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 55,- "name": "refresh_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 33,- "character": 15- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {+ "type": {"type": "intrinsic","name": "string"}- ]- }- },- {- "id": 56,- "name": "token_type",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 34,- "character": 12- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 57,- "name": "user",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 35,- "character": 6- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "null"+ "type": "reflection",+ "declaration": {+ "id": 284,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 286,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 356,+ "character": 40+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 285,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 356,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 286,+ 285+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}}- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 52,- 54,- 53,- 51,- 55,- 56,- 57- ]- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 22,- "character": 24- }]},{- "id": 87,- "name": "Subscription",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [+ "id": 239,+ "name": "signIn",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 89,- "name": "callback",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },+ "fileName": "src/GoTrueClient.ts",+ "line": 178,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 240,+ "name": "signIn",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},"comment": {- "shortText": "The function to call every time there is an event. eg: (eventName) => {}"+ "shortText": "Log in an existing user, or login via a third-party provider."},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 89,- "character": 10+ "id": 241,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 445,+ "name": "UserCredentials"+ }+ },+ {+ "id": 242,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 243,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 244,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 181,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 245,+ "name": "scopes",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 182,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 244,+ 245+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {- "type": "reflection",- "declaration": {- "id": 90,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 91,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 246,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "id": 92,- "name": "event",- "kind": 32768,- "kindString": "Parameter",+ "id": 252,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 190,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 251,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 189,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 249,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 187,+ "character": 4+ }+ ],+ "type": {+ "type": "reference",+ "id": 391,+ "name": "Provider"+ }+ },+ {+ "id": 247,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 185,+ "character": 4+ }+ ],"type": {- "type": "reference",- "id": 113,- "name": "AuthChangeEvent"+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]}},{- "id": 93,- "name": "session",- "kind": 32768,- "kindString": "Parameter",+ "id": 250,+ "name": "url",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 188,+ "character": 4+ }+ ],"type": {"type": "union","types": [{- "type": "reference",- "id": 50,- "name": "Session"+ "type": "literal",+ "value": null},{"type": "intrinsic",- "name": "null"+ "name": "string"+ }+ ]+ }+ },+ {+ "id": 248,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 186,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"}]}}],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 89,- "character": 11+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 252,+ 251,+ 249,+ 247,+ 250,+ 248+ ]+ }+ ]}- ]- }+ }+ ],+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 298,+ "name": "signOut",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 88,- "name": "id",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "comment": {- "shortText": "The subscriber UUID. This will be set by the client."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 85,- "character": 4- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },+ "fileName": "src/GoTrueClient.ts",+ "line": 449,+ "character": 8+ }+ ],+ "signatures": [{- "id": 94,- "name": "unsubscribe",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },+ "id": 299,+ "name": "signOut",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},"comment": {- "shortText": "Call this to remove the listener."+ "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",+ "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"},- "sources": [- {- "fileName": "lib/types.ts",- "line": 93,- "character": 13- }- ],"type": {- "type": "reflection",- "declaration": {- "id": 95,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 96,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 93,- "character": 14+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 300,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 301,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 449,+ "character": 29+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 301+ ]+ }+ ]}- ]- }+ }+ ],+ "name": "Promise"}}- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 89,- 88,- 94- ]- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 81,- "character": 29- }]},{- "id": 58,- "name": "User",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [+ "id": 227,+ "name": "signUp",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 72,- "name": "action_link",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 49,- "character": 13- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "fileName": "src/GoTrueClient.ts",+ "line": 115,+ "character": 8+ }+ ],+ "signatures": [{- "id": 60,- "name": "app_metadata",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true+ "id": 228,+ "name": "signUp",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Creates a new user."},- "sources": [+ "parameters": [+ {+ "id": 229,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 445,+ "name": "UserCredentials"+ }+ },{- "fileName": "lib/types.ts",- "line": 39,- "character": 14- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 61,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 63,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [+ "id": 230,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 231,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "id": 64,- "name": "key",- "kind": 32768,- "kindString": "Parameter",+ "id": 233,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 119,+ "character": 6+ }+ ],"type": {"type": "intrinsic",- "name": "string"+ "name": "object"}- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "children": [- {- "id": 62,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [+ },{- "fileName": "lib/types.ts",- "line": 40,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"+ "id": 232,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true},- {+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 118,+ "character": 6+ }+ ],+ "type": {"type": "intrinsic","name": "string"}- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 62+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 233,+ 232+ ]+ }]}- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 39,- "character": 15- }- ]- }- }- },- {- "id": 69,- "name": "aud",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 46,- "character": 5- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 70,- "name": "confirmation_sent_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 47,- "character": 22+ },+ "defaultValue": "{}"}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 234,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 238,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 125,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 237,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 124,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 236,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 123,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 235,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 122,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 238,+ 237,+ 236,+ 235+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 274,+ "name": "update",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 76,- "name": "confirmed_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/GoTrueClient.ts",+ "line": 327,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 275,+ "name": "update",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Updates user data, if there is a logged in user."},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 53,- "character": 14+ "id": 276,+ "name": "attributes",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 426,+ "name": "UserAttributes"+ }}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 277,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 278,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 329,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 280,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 329,+ "character": 53+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 279,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 329,+ "character": 34+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 278,+ 280,+ 279+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 264,+ "name": "user",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 75,- "name": "created_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 52,- "character": 12- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },+ "fileName": "src/GoTrueClient.ts",+ "line": 292,+ "character": 2+ }+ ],+ "signatures": [{- "id": 73,- "name": "email",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "id": 265,+ "name": "user",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "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"},- "sources": [- {- "fileName": "lib/types.ts",- "line": 50,- "character": 7- }- ],"type": {"type": "union","types": [{- "type": "intrinsic",- "name": "undefined"+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "id": 401,+ "name": "User"}]}- },+ }+ ]+ },+ {+ "id": 253,+ "name": "verifyOTP",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 77,- "name": "email_confirmed_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/GoTrueClient.ts",+ "line": 243,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 254,+ "name": "verifyOTP",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Log in a user given a User supplied OTP received via mobile."},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 54,- "character": 20+ "id": 255,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 451,+ "name": "VerifyOTPParams"+ }+ },+ {+ "id": 256,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 257,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 258,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 246,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 258+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 259,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 263,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 252,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 262,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 251,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 261,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 250,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 260,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 249,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 263,+ 262,+ 261,+ 260+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}- },+ }+ ]+ }+ ],+ "groups": [+ {+ "title": "Constructors",+ "kind": 512,+ "children": [+ 200+ ]+ },+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 219,+ 222,+ 221,+ 220,+ 224,+ 223,+ 226,+ 225+ ]+ },+ {+ "title": "Methods",+ "kind": 2048,+ "children": [+ 368,+ 312,+ 329,+ 343,+ 377,+ 383,+ 366,+ 364,+ 386,+ 380,+ 388,+ 290,+ 302,+ 268,+ 266,+ 287,+ 281,+ 239,+ 298,+ 227,+ 274,+ 264,+ 253+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 39,+ "character": 21+ }+ ]+ },+ {+ "id": 439,+ "name": "CookieOptions",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 442,+ "name": "domain",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 103,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 441,+ "name": "lifetime",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 101,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "number"+ }+ },+ {+ "id": 440,+ "name": "name",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 99,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 443,+ "name": "path",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 104,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 444,+ "name": "sameSite",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 106,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 442,+ 441,+ 440,+ 443,+ 444+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 97,+ "character": 17+ }+ ]+ },+ {+ "id": 393,+ "name": "Session",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 395,+ "name": "access_token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 24,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 397,+ "name": "expires_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 32,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "number"+ }+ },+ {+ "id": 396,+ "name": "expires_in",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 28,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "number"+ }+ },+ {+ "id": 394,+ "name": "provider_token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 59,- "name": "id",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true+ "fileName": "src/lib/types.ts",+ "line": 23,+ "character": 2+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "lib/types.ts",- "line": 38,- "character": 4- }- ],- "type": {+ {"type": "intrinsic","name": "string"}- },+ ]+ }+ },+ {+ "id": 398,+ "name": "refresh_token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 79,- "name": "last_sign_in_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 56,- "character": 17- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "fileName": "src/lib/types.ts",+ "line": 33,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 399,+ "name": "token_type",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 74,- "name": "phone",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 51,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "fileName": "src/lib/types.ts",+ "line": 34,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 400,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 78,- "name": "phone_confirmed_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/lib/types.ts",+ "line": 35,+ "character": 2+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "lib/types.ts",- "line": 55,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ {+ "type": "reference",+ "id": 401,+ "name": "User"}- },+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 395,+ 397,+ 396,+ 394,+ 398,+ 399,+ 400+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 22,+ "character": 17+ }+ ]+ },+ {+ "id": 431,+ "name": "Subscription",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 432,+ "name": "id",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "comment": {+ "shortText": "The subscriber UUID. This will be set by the client."+ },+ "sources": [{- "id": 71,- "name": "recovery_sent_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/lib/types.ts",+ "line": 86,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 433,+ "name": "callback",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 90,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 434,+ "name": "callback",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 48,- "character": 18- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"+ "id": 435,+ "name": "event",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 392,+ "name": "AuthChangeEvent"}- ]- }- },- {- "id": 80,- "name": "role",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [+ },{- "fileName": "lib/types.ts",- "line": 57,- "character": 6+ "id": 436,+ "name": "session",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "intrinsic",+ "name": "void"}- },+ }+ ]+ },+ {+ "id": 437,+ "name": "unsubscribe",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 81,- "name": "updated_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/lib/types.ts",+ "line": 94,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 438,+ "name": "unsubscribe",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Call this to remove the listener."},- "sources": [- {- "fileName": "lib/types.ts",- "line": 58,- "character": 12- }- ],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "intrinsic",+ "name": "void"}- },+ }+ ]+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 432+ ]+ },+ {+ "title": "Methods",+ "kind": 2048,+ "children": [+ 433,+ 437+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 82,+ "character": 17+ }+ ]+ },+ {+ "id": 401,+ "name": "User",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 416,+ "name": "action_link",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 65,- "name": "user_metadata",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [+ "fileName": "src/lib/types.ts",+ "line": 50,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 403,+ "name": "app_metadata",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 39,+ "character": 2+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 404,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "fileName": "lib/types.ts",- "line": 43,- "character": 15- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 66,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "id": 405,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "indexSignature": [- {- "id": 67,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 68,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],"sources": [{- "fileName": "lib/types.ts",- "line": 43,- "character": 16+ "fileName": "src/lib/types.ts",+ "line": 40,+ "character": 4}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 405]}+ ],+ "indexSignature": {+ "id": 406,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [+ {+ "id": 407,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "any"+ }}}+ }+ },+ {+ "id": 412,+ "name": "aud",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 46,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 413,+ "name": "confirmation_sent_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 47,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 420,+ "name": "confirmed_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 54,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 419,+ "name": "created_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 53,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 417,+ "name": "email",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 51,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 421,+ "name": "email_confirmed_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 55,+ "character": 2+ }],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 402,+ "name": "id",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 72,- 60,- 69,- 70,- 76,- 75,- 73,- 77,- 59,- 79,- 74,- 78,- 71,- 80,- 81,- 65- ]+ "fileName": "src/lib/types.ts",+ "line": 38,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 415,+ "name": "invited_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "lib/types.ts",- "line": 37,- "character": 21+ "fileName": "src/lib/types.ts",+ "line": 49,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 82,- "name": "UserAttributes",- "kind": 256,- "kindString": "Interface",+ "id": 423,+ "name": "last_sign_in_at",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 86,- "name": "data",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "A custom data object. Can be any JSON."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 78,- "character": 6- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },+ "fileName": "src/lib/types.ts",+ "line": 57,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 418,+ "name": "phone",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 83,- "name": "email",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "The user's email."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 65,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "fileName": "src/lib/types.ts",+ "line": 52,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 422,+ "name": "phone_confirmed_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 85,- "name": "email_change_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "An email change token."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 73,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "fileName": "src/lib/types.ts",+ "line": 56,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 414,+ "name": "recovery_sent_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 84,- "name": "password",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "The user's password."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 69,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "fileName": "src/lib/types.ts",+ "line": 48,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 424,+ "name": "role",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 58,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 425,+ "name": "updated_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 59,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 408,+ "name": "user_metadata",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 43,+ "character": 2+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 409,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 410,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [{- "type": "intrinsic",- "name": "string"+ "id": 411,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "any"+ }}}- ],- "groups": [+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 416,+ 403,+ 412,+ 413,+ 420,+ 419,+ 417,+ 421,+ 402,+ 415,+ 423,+ 418,+ 422,+ 414,+ 424,+ 425,+ 408+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 37,+ "character": 17+ }+ ]+ },+ {+ "id": 426,+ "name": "UserAttributes",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 430,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "A custom data object. Can be any JSON."+ },+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 86,- 83,- 85,- 84- ]+ "fileName": "src/lib/types.ts",+ "line": 79,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 427,+ "name": "email",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The user's email."+ },"sources": [{- "fileName": "lib/types.ts",- "line": 61,- "character": 31+ "fileName": "src/lib/types.ts",+ "line": 66,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 103,- "name": "UserCredentials",- "kind": 256,- "kindString": "Interface",+ "id": 429,+ "name": "email_change_token",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 104,- "name": "email",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 109,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 106,- "name": "password",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 111,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 105,- "name": "phone",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 110,- "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": 114,- "character": 10- }- ],- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },+ "comment": {+ "shortText": "An email change token."+ },+ "sources": [{- "id": 107,- "name": "refreshToken",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 112,- "character": 14- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/lib/types.ts",+ "line": 74,+ "character": 2}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 428,+ "name": "password",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The user's password."+ },+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 104,- 106,- 105,- 108,- 107- ]+ "fileName": "src/lib/types.ts",+ "line": 70,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 430,+ 427,+ 429,+ 428+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 62,+ "character": 17+ }+ ]+ },+ {+ "id": 445,+ "name": "UserCredentials",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 446,+ "name": "email",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "lib/types.ts",- "line": 108,- "character": 32+ "fileName": "src/lib/types.ts",+ "line": 110,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 109,- "name": "VerifyOTPParams",- "kind": 256,- "kindString": "Interface",+ "id": 448,+ "name": "password",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 110,- "name": "phone",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 118,- "character": 7- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 111,- "name": "token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 119,- "character": 7- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "groups": [+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 110,- 111- ]+ "fileName": "src/lib/types.ts",+ "line": 112,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 447,+ "name": "phone",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "lib/types.ts",- "line": 117,- "character": 32+ "fileName": "src/lib/types.ts",+ "line": 111,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 113,- "name": "AuthChangeEvent",- "kind": 4194304,- "kindString": "Type alias",+ "id": 450,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},"sources": [{- "fileName": "lib/types.ts",- "line": 15,- "character": 27+ "fileName": "src/lib/types.ts",+ "line": 115,+ "character": 2}],"type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "SIGNED_IN"- },- {- "type": "stringLiteral",- "value": "SIGNED_OUT"- },- {- "type": "stringLiteral",- "value": "USER_UPDATED"- },- {- "type": "stringLiteral",- "value": "USER_DELETED"- },- {- "type": "stringLiteral",- "value": "PASSWORD_RECOVERY"- }- ]+ "type": "reference",+ "id": 391,+ "name": "Provider"}},{- "id": 112,- "name": "Provider",- "kind": 4194304,- "kindString": "Type alias",+ "id": 449,+ "name": "refreshToken",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},"sources": [{- "fileName": "lib/types.ts",- "line": 1,- "character": 20+ "fileName": "src/lib/types.ts",+ "line": 113,+ "character": 2}],"type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "azure"- },- {- "type": "stringLiteral",- "value": "bitbucket"- },- {- "type": "stringLiteral",- "value": "facebook"- },- {- "type": "stringLiteral",- "value": "github"- },- {- "type": "stringLiteral",- "value": "gitlab"- },- {- "type": "stringLiteral",- "value": "google"- },- {- "type": "stringLiteral",- "value": "twitter"- },- {- "type": "stringLiteral",- "value": "apple"- },- {- "type": "stringLiteral",- "value": "discord"- },- {- "type": "stringLiteral",- "value": "twitch"- },- {- "type": "stringLiteral",- "value": "spotify"- },- {- "type": "stringLiteral",- "value": "slack"- }- ]+ "type": "intrinsic",+ "name": "string"}}],"groups": [{- "title": "Interfaces",- "kind": 256,- "children": [- 97,- 50,- 87,- 58,- 82,- 103,- 109- ]- },- {- "title": "Type aliases",- "kind": 4194304,+ "title": "Properties",+ "kind": 1024,"children": [- 113,- 112+ 446,+ 448,+ 447,+ 450,+ 449]}],"sources": [{- "fileName": "lib/types.ts",- "line": 1,- "character": 0+ "fileName": "src/lib/types.ts",+ "line": 109,+ "character": 17}]},{- "id": 114,- "name": "\"lib/version\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/version.ts",+ "id": 451,+ "name": "VerifyOTPParams",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},"children": [{- "id": 115,- "name": "version",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },+ "id": 452,+ "name": "phone",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "lib/version.ts",- "line": 2,- "character": 20+ "fileName": "src/lib/types.ts",+ "line": 119,+ "character": 2}],"type": {- "type": "stringLiteral",- "value": "0.0.0"- },- "defaultValue": "\"0.0.0\""+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 453,+ "name": "token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 120,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 115+ 452,+ 453]}],"sources": [{- "fileName": "lib/version.ts",- "line": 1,- "character": 0+ "fileName": "src/lib/types.ts",+ "line": 118,+ "character": 17}]+ },+ {+ "id": 392,+ "name": "AuthChangeEvent",+ "kind": 4194304,+ "kindString": "Type alias",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 15,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "SIGNED_IN"+ },+ {+ "type": "literal",+ "value": "SIGNED_OUT"+ },+ {+ "type": "literal",+ "value": "USER_UPDATED"+ },+ {+ "type": "literal",+ "value": "USER_DELETED"+ },+ {+ "type": "literal",+ "value": "PASSWORD_RECOVERY"+ }+ ]+ }+ },+ {+ "id": 391,+ "name": "Provider",+ "kind": 4194304,+ "kindString": "Type alias",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 1,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "azure"+ },+ {+ "type": "literal",+ "value": "bitbucket"+ },+ {+ "type": "literal",+ "value": "facebook"+ },+ {+ "type": "literal",+ "value": "github"+ },+ {+ "type": "literal",+ "value": "gitlab"+ },+ {+ "type": "literal",+ "value": "google"+ },+ {+ "type": "literal",+ "value": "twitter"+ },+ {+ "type": "literal",+ "value": "apple"+ },+ {+ "type": "literal",+ "value": "discord"+ },+ {+ "type": "literal",+ "value": "twitch"+ },+ {+ "type": "literal",+ "value": "spotify"+ },+ {+ "type": "literal",+ "value": "slack"+ }+ ]+ }}],"groups": [{- "title": "Modules",- "kind": 1,+ "title": "Classes",+ "kind": 128,"children": [- 185,- 362,- 579,- 116,- 129,1,- 173,- 359,- 49,- 114+ 199+ ]+ },+ {+ "title": "Interfaces",+ "kind": 256,+ "children": [+ 439,+ 393,+ 431,+ 401,+ 426,+ 445,+ 451+ ]+ },+ {+ "title": "Type aliases",+ "kind": 4194304,+ "children": [+ 392,+ 391]}+ ],+ "sources": [+ {+ "fileName": "src/index.ts",+ "line": 1,+ "character": 0+ }]},{diff --git a/web/spec/gotrue.json b/web/spec/gotrue.jsonindex 0b73fe01a07..791d546d119 100644--- a/web/spec/gotrue.json+++ b/web/spec/gotrue.json@@ -1,10041 +1,3797 @@{"id": 0,"name": "@supabase/gotrue-js",- "kind": 0,+ "kind": 1,+ "kindString": "Project","flags": {},"originalName": "","children": [{- "id": 185,- "name": "\"GoTrueApi\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",+ "id": 1,+ "name": "GoTrueApi",+ "kind": 128,+ "kindString": "Class",+ "flags": {},"children": [{- "id": 189,- "name": "GoTrueApi",- "kind": 128,- "kindString": "Class",- "flags": {- "isExported": true- },- "children": [+ "id": 2,+ "name": "constructor",+ "kind": 512,+ "kindString": "Constructor",+ "flags": {},+ "sources": [{- "id": 196,- "name": "constructor",- "kind": 512,- "kindString": "Constructor",- "flags": {- "isExported": true- },- "signatures": [+ "fileName": "src/GoTrueApi.ts",+ "line": 20,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 3,+ "name": "new GoTrueApi",+ "kind": 16384,+ "kindString": "Constructor signature",+ "flags": {},+ "parameters": [{- "id": 197,- "name": "new GoTrueApi",- "kind": 16384,- "kindString": "Constructor signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 198,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 199,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "id": 4,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 5,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 11,+ "name": "cookieOptions",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 205,- "name": "cookieOptions",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 22,- "character": 17- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reference",- "id": 97,- "name": "CookieOptions"- }- ]- }- },+ "fileName": "src/GoTrueApi.ts",+ "line": 30,+ "character": 4+ }+ ],+ "type": {+ "type": "reference",+ "id": 439,+ "name": "CookieOptions"+ }+ },+ {+ "id": 12,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 201,- "name": "headers",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [+ "fileName": "src/GoTrueApi.ts",+ "line": 31,+ "character": 4+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 13,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "signatures": [{- "fileName": "GoTrueApi.ts",- "line": 21,- "character": 11- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 202,+ "id": 14,"name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [{- "id": 203,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",+ "id": 15,+ "name": "input",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "RequestInfo"+ }+ },+ {+ "id": 16,+ "name": "init",+ "kind": 32768,+ "kindString": "Parameter","flags": {- "isExported": true+ "isOptional": true},- "parameters": [- {- "id": 204,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "name": "RequestInit"}}- ]- }- }- },- {- "id": 200,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 20,- "character": 7+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "name": "Response"+ }+ ],+ "name": "Promise"+ }}- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"\""+ ]}- ],- "groups": [+ }+ },+ {+ "id": 7,+ "name": "headers",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 205,- 201,- 200- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 27,+ "character": 4}],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 8,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 9,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [+ {+ "id": 10,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ }+ }+ },+ {+ "id": 6,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 19,- "character": 14+ "fileName": "src/GoTrueApi.ts",+ "line": 26,+ "character": 4}- ]- }- }- }- ],- "type": {- "type": "reference",- "id": 189,- "name": "GoTrueApi"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 17,- "character": 40- }- ]- },- {- "id": 195,- "name": "cookieOptions",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 17,- "character": 25- }- ],- "type": {- "type": "reference",- "id": 97,- "name": "CookieOptions"- }- },- {- "id": 191,- "name": "headers",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 14,- "character": 19- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 192,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 193,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 194,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },+ ],"type": {"type": "intrinsic","name": "string"}}],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 14,- "character": 20+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 11,+ 12,+ 7,+ 6+ ]+ }+ ]}- ]- }- }- },- {- "id": 190,- "name": "url",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 13,- "character": 15+ }}],"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "id": 1,+ "name": "default"}- },+ }+ ]+ },+ {+ "id": 22,+ "name": "cookieOptions",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [{- "id": 291,- "name": "_createRequestHeaders",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },+ "fileName": "src/GoTrueApi.ts",+ "line": 17,+ "character": 12+ }+ ],+ "type": {+ "type": "reference",+ "id": 439,+ "name": "CookieOptions"+ }+ },+ {+ "id": 23,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 18,+ "character": 12+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 24,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},"signatures": [{- "id": 292,- "name": "_createRequestHeaders",+ "id": 25,+ "name": "__type","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods"- },+ "flags": {},"parameters": [{- "id": 293,- "name": "jwt",+ "id": 26,+ "name": "input",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "RequestInfo"+ }+ },+ {+ "id": 27,+ "name": "init","kind": 32768,"kindString": "Parameter","flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT.\n"+ "isOptional": true},"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "name": "RequestInit"}}],"type": {- "type": "reflection",- "declaration": {- "id": 294,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "name": "Response"}+ ],+ "name": "Promise"+ }+ }+ ]+ }+ }+ },+ {+ "id": 18,+ "name": "headers",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 14,+ "character": 12+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 19,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 20,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [+ {+ "id": 21,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"}}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"}- ],- "sources": [+ }+ }+ }+ },+ {+ "id": 17,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 13,+ "character": 12+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 130,+ "name": "_createRequestHeaders",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 337,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 131,+ "name": "_createRequestHeaders",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods"+ },+ "parameters": [{- "fileName": "GoTrueApi.ts",- "line": 272,- "character": 31+ "id": 132,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- ]- },+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 133,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}+ }+ }+ }+ ]+ },+ {+ "id": 28,+ "name": "createUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 322,- "name": "deleteUser",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 47,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 29,+ "name": "createUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Creates a new user.",+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"},- "signatures": [+ "parameters": [{- "id": 323,- "name": "deleteUser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 30,+ "name": "attributes",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Delete a user. Requires a `service_role` key.",- "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"+ "shortText": "The data you want to create the user with."},- "parameters": [- {- "id": 324,- "name": "uid",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The user uid you want to remove."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 325,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid JWT. Must be a full-access API key (e.g. service_role key).\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],"type": {"type": "reference",- "typeArguments": [+ "id": 426,+ "name": "UserAttributes"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [{"type": "reflection","declaration": {- "id": 326,+ "id": 31,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 328,+ "id": 32,"name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 38+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 15}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "literal",+ "value": null}},{- "id": 329,+ "id": 33,"name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 58+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 27}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "reference",+ "name": "ApiError"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 32,+ 33+ ]+ }+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 34,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 35,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 49+ }+ ],+ "type": {+ "type": "reference",+ "id": 401,+ "name": "User"}},{- "id": 327,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "id": 36,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 19+ "fileName": "src/GoTrueApi.ts",+ "line": 49,+ "character": 61}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "literal",+ "value": null}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 328,- 329,- 327+ 35,+ 36]}- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 363,- "character": 13- }]}}- ],- "name": "Promise"+ ]}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 360,- "character": 18- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 161,+ "name": "deleteUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 347,- "name": "generateLink",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 428,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 162,+ "name": "deleteUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Delete a user. Requires a `service_role` key.",+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"},- "signatures": [+ "parameters": [{- "id": 348,- "name": "generateLink",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Generates links to be sent via email or other."+ "id": 163,+ "name": "uid",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The user uid you want to remove."},- "parameters": [- {- "id": 349,- "name": "type",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."- },- "type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "signup"- },- {- "type": "stringLiteral",- "value": "magiclink"- },- {- "type": "stringLiteral",- "value": "recovery"- },- {- "type": "stringLiteral",- "value": "invite"- }- ]- }- },- {- "id": 350,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's email."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 351,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 352,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 354,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 460,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 353,- "name": "password",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 459,- "character": 14- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 355,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 461,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 354,- 353,- 355- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 458,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 356,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 357,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata. For signup only."- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 463,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 358,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 463,- "character": 49- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 357,- 358- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 463,- "character": 13- }- ]- }- }- ],- "name": "Promise"+ "type": "intrinsic",+ "name": "string"}- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 455,- "character": 20- }- ]- },- {- "id": 300,- "name": "getUrlForProvider",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [+ },{- "id": 301,- "name": "getUrlForProvider",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 164,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Generates the relevant login URL for a third-party provider."+ "shortText": "A valid JWT. Must be a full-access API key (e.g. service_role key).\n"},- "parameters": [- {- "id": 302,- "name": "provider",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "One of the providers supported by GoTrue."- },- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 303,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 304,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 305,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 304,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 306,- "name": "scopes",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 305,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 305,- 306- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 303,- "character": 12- }- ]- }- }- }- ],"type": {"type": "intrinsic","name": "string"}}],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 301,- "character": 19- }- ]- },- {- "id": 307,- "name": "getUser",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 308,- "name": "getUser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Gets the user details."- },- "parameters": [- {- "id": 309,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT.\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 310,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 312,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 313,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 311,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 312,- 313,- 311- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 324,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 322,- "character": 15- }- ]- },- {- "id": 340,- "name": "getUserByCookie",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 341,- "name": "getUserByCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."- },- "parameters": [- {- "id": 342,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 343,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 345,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 346,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 344,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 345,- 346,- 344- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 431,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 429,- "character": 23- }- ]- },- {- "id": 271,- "name": "inviteUserByEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 272,- "name": "inviteUserByEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Sends an invite link to an email address."- },- "parameters": [- {- "id": 273,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 274,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 275,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 277,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 223,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 276,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 222,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 277,- 276- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 221,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 278,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 279,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata\n"- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 225,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 280,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 225,- "character": 39- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 279,- 280- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 225,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 219,- "character": 25- }- ]- },- {- "id": 330,- "name": "refreshAccessToken",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 331,- "name": "refreshAccessToken",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Generates a new JWT."- },- "parameters": [- {- "id": 332,- "name": "refreshToken",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid refresh token that was returned on login.\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 333,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 334,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 384,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 335,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 384,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 334,- 335- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 384,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 382,- "character": 26- }- ]- },- {- "id": 281,- "name": "resetPasswordForEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 282,- "name": "resetPasswordForEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Sends a reset request to an email address."- },- "parameters": [- {- "id": 283,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 284,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 285,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 286,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 251,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 286- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 250,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 287,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 288,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 289,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 20- }- ]- }- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 290,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 37- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 288,- 290- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 253,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 248,- "character": 29- }- ]- },- {- "id": 244,- "name": "sendMagicLinkEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 245,- "name": "sendMagicLinkEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Sends a magic login link to an email address."- },- "parameters": [- {- "id": 246,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 247,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 248,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 249,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 157,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 249- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 156,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 250,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 251,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 252,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 20- }- ]- }- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 253,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 37- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 251,- 253- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 159,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 154,- "character": 26- }- ]- },- {- "id": 254,- "name": "sendMobileOTP",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 255,- "name": "sendMobileOTP",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"- },- "parameters": [- {- "id": 256,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's phone number WITH international prefix\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 257,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 258,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 52- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 259,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 53- }- ]- }- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 260,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 70- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 258,- 260- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 46- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 177,- "character": 21- }- ]- },- {- "id": 336,- "name": "setAuthCookie",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 337,- "name": "setAuthCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."- },- "parameters": [- {- "id": 338,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 339,- "name": "res",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 403,- "character": 15- }- ]- },- {- "id": 217,- "name": "signInWithEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 218,- "name": "signInWithEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Logs in an existing user using their email address."- },- "parameters": [- {- "id": 219,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 220,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The password of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 221,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 222,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 223,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 82,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 223- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 81,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 224,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 225,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 84,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 226,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 84,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 225,- 226- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 84,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 78,- "character": 23- }- ]- },- {- "id": 237,- "name": "signInWithPhone",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 238,- "name": "signInWithPhone",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Logs in an existing user using their phone number and password."- },- "parameters": [- {- "id": 239,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The phone number of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 240,- "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": 241,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 242,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 136,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 243,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 136,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 242,- 243- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 136,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 133,- "character": 23- }- ]- },- {- "id": 295,- "name": "signOut",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 296,- "name": "signOut",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Removes a logged-in session."- },- "parameters": [- {- "id": 297,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT.\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 298,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 299,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 282,- "character": 45- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 299- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 282,- "character": 38- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 282,- "character": 15- }- ]- },- {- "id": 206,- "name": "signUpWithEmail",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 207,- "name": "signUpWithEmail",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Creates a new user using their email address.",- "returns": "A logged-in session if the server has \"autoconfirm\" ON"- },- "parameters": [- {- "id": 208,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The email address of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 209,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The password of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 210,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 211,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 213,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 50,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 212,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 49,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 213,- 212- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 48,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 214,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 215,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata.\n"- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 52,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 216,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 52,- "character": 49- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 215,- 216- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 52,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 45,- "character": 23- }- ]- },- {- "id": 227,- "name": "signUpWithPhone",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 228,- "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": 229,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The phone number of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 230,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The password of the user."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 231,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 232,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 233,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 110,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 233- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 109,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 234,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 235,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "Optional user metadata.\n"- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 112,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 236,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 112,- "character": 49- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 235,- 236- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 112,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 106,- "character": 23- }- ]- },- {- "id": 314,- "name": "updateUser",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 315,- "name": "updateUser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Updates the user data."- },- "parameters": [- {- "id": 316,- "name": "jwt",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid, logged-in JWT."- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 317,- "name": "attributes",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "The data you want to update.\n"- },- "type": {- "type": "reference",- "id": 82,- "name": "UserAttributes"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 318,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 320,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 321,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 319,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 320,- 321,- 319- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 341,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 338,- "character": 18- }- ]- },- {- "id": 261,- "name": "verifyMobileOTP",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 262,- "name": "verifyMobileOTP",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Send User supplied Mobile OTP to be verified"- },- "parameters": [- {- "id": 263,- "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": 264,- "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": 265,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 266,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 267,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 197,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 267- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 196,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 268,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 269,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 199,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 270,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 199,- "character": 49- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 269,- 270- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 199,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 193,- "character": 23- }- ]- }- ],- "groups": [- {- "title": "Constructors",- "kind": 512,- "children": [- 196- ]- },- {- "title": "Properties",- "kind": 1024,- "children": [- 195,- 191,- 190- ]- },- {- "title": "Methods",- "kind": 2048,- "children": [- 291,- 322,- 347,- 300,- 307,- 340,- 271,- 330,- 281,- 244,- 254,- 336,- 217,- 237,- 295,- 206,- 227,- 314,- 261- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 12,- "character": 30- }- ]- },- {- "id": 186,- "name": "ApiError",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [- {- "id": 187,- "name": "message",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 8,- "character": 9- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 188,- "name": "status",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 9,- "character": 8- }- ],- "type": {- "type": "intrinsic",- "name": "number"- }- }- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 187,- 188- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 7,- "character": 25- }- ]- }- ],- "groups": [- {- "title": "Classes",- "kind": 128,- "children": [- 189- ]- },- {- "title": "Interfaces",- "kind": 256,- "children": [- 186- ]- }- ],- "sources": [- {- "fileName": "GoTrueApi.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 362,- "name": "\"GoTrueClient\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",- "children": [- {- "id": 363,- "name": "GoTrueClient",- "kind": 128,- "kindString": "Class",- "flags": {- "isExported": true- },- "children": [- {- "id": 372,- "name": "constructor",- "kind": 512,- "kindString": "Constructor",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Create a new client for use in the browser."- },- "signatures": [- {- "id": 373,- "name": "new GoTrueClient",- "kind": 16384,- "kindString": "Constructor signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Create a new client for use in the browser."- },- "parameters": [- {- "id": 374,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 375,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 382,- "name": "autoRefreshToken",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Set to \"true\" if you want to automatically refresh the token before expiring."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 73,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- },- {- "id": 385,- "name": "cookieOptions",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "\n"- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 76,- "character": 17- }- ],- "type": {- "type": "reference",- "id": 97,- "name": "CookieOptions"- }- },- {- "id": 381,- "name": "detectSessionInUrl",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 72,- "character": 22- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- },- {- "id": 377,- "name": "headers",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Any additional headers to send to the GoTrue server."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 71,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reflection",- "declaration": {- "id": 378,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 379,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 380,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ]- }- }- ]- }- },- {- "id": 384,- "name": "localStorage",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 75,- "character": 16- }- ],- "type": {- "type": "reference",- "id": 578,- "name": "SupportedStorage"- }- },- {- "id": 383,- "name": "persistSession",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Set to \"true\" if you want to automatically save the user session into local storage."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 74,- "character": 18- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- },- {- "id": 376,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "The URL of the GoTrue server."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 70,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 382,- 385,- 381,- 377,- 384,- 383,- 376- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 69,- "character": 22- }- ]- }- }- }- ],- "type": {- "type": "reference",- "id": 363,- "name": "GoTrueClient"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 57,- "character": 61- }- ]- },- {- "id": 364,- "name": "api",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 43,- "character": 5- }- ],- "type": {- "type": "reference",- "id": 189,- "name": "GoTrueApi"- }- },- {- "id": 367,- "name": "autoRefreshToken",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 53,- "character": 28- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- },- {- "id": 366,- "name": "currentSession",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "comment": {- "shortText": "The session object for the currently logged in user or null."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 51,- "character": 26- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 365,- "name": "currentUser",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "comment": {- "shortText": "The currently logged in user or null."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 47,- "character": 23- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 369,- "name": "localStorage",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 55,- "character": 24- }- ],- "type": {- "type": "reference",- "id": 578,- "name": "SupportedStorage"- }- },- {- "id": 368,- "name": "persistSession",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 54,- "character": 26- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- },- {- "id": 371,- "name": "refreshTokenTimer",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 57,- "character": 29- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "query",- "queryType": {- "type": "reference",- "name": "setTimeout"- }- }- ],- "name": "ReturnType"- }- },- {- "id": 370,- "name": "stateChangeEmitters",- "kind": 1024,- "kindString": "Property",- "flags": {- "isProtected": true,- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 56,- "character": 31- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "string"- },- {- "type": "reference",- "id": 87,- "name": "Subscription"- }- ],- "name": "Map"- },- "defaultValue": "new Map()"- },- {- "id": 538,- "name": "_callRefreshToken",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 539,- "name": "_callRefreshToken",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 540,- "name": "refresh_token",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- },- "defaultValue": "this.currentSession?.refresh_token"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 541,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 542,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 621,- "character": 19- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- },- {- "id": 543,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 621,- "character": 26- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 542,- 543- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 544,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 545,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 623,- "character": 19- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 546,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 623,- "character": 32- }- ],- "type": {- "type": "reference",- "id": 186,- "name": "ApiError"- },- "defaultValue": "e as ApiError"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 545,- 546- ]- }- ]- }- }- ]- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 609,- "character": 33- }- ]- },- {- "id": 484,- "name": "_handleEmailSignIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 485,- "name": "_handleEmailSignIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 486,- "name": "email",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 487,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 488,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 489,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 490,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 484,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 490- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 483,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 491,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 492,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 39- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 495,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 79- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 186,- "name": "ApiError"- }- ]- }- },- {- "id": 494,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 66- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 493,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 491,- "character": 51- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 492,- 495,- 494,- 493- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 496,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 497,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 19- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- },- {- "id": 500,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 58- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 499,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 45- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- },- "defaultValue": "data"- },- {- "id": 498,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 498,- "character": 25- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 58,- "name": "User"- }- ]- },- "defaultValue": "data.user"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 497,- 500,- 499,- 498- ]- }- ]- }- }- ]- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 480,- "character": 34- }- ]- },- {- "id": 501,- "name": "_handlePhoneSignIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 502,- "name": "_handlePhoneSignIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 503,- "name": "phone",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 504,- "name": "password",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 505,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 506,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 39- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 509,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 79- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 186,- "name": "ApiError"- }- ]- }- },- {- "id": 508,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 66- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 507,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 507,- "character": 51- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 506,- 509,- 508,- 507- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 510,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 511,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 19- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- },- {- "id": 514,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 58- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 513,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 45- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- },- "defaultValue": "data"- },- {- "id": 512,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 514,- "character": 25- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "reference",- "id": 58,- "name": "User"- }- ]- },- "defaultValue": "data.user"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 511,- 514,- 513,- 512- ]- }- ]- }- }- ]- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 504,- "character": 34- }- ]- },- {- "id": 515,- "name": "_handleProviderSignIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 516,- "name": "_handleProviderSignIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 517,- "name": "provider",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 518,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 519,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 520,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 523,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 521,- "name": "scopes",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 524,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 520,- 521- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 522,- "character": 12- }- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reflection",- "declaration": {- "id": 522,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 525,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 34- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 528,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 74- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 523,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 23- }- ],- "type": {- "type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 526,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 49- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 524,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 28- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 527,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 537,- "character": 61- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 525,- 528,- 523,- 526,- 524,- 527- ]- }- ]- }- },- {- "type": "reflection",- "declaration": {- "id": 529,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 530,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 19- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 533,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 59- }- ],- "type": {- "type": "reference",- "id": 186,- "name": "ApiError"- },- "defaultValue": "e as ApiError"- },- {- "id": 532,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 46- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- },- {- "id": 531,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 541,- "character": 31- }- ],- "type": {- "type": "intrinsic",- "name": "null"- },- "defaultValue": "null"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 530,- 533,- 532,- 531- ]- }- ]- }- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 520,- "character": 31- }- ]- },- {- "id": 547,- "name": "_notifyAllSubscribers",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 548,- "name": "_notifyAllSubscribers",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 549,- "name": "event",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 113,- "name": "AuthChangeEvent"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 627,- "character": 31- }- ]- },- {- "id": 553,- "name": "_persistSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 554,- "name": "_persistSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 555,- "name": "currentSession",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 654,- "character": 25- }- ]- },- {- "id": 536,- "name": "_recoverAndRefresh",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 537,- "name": "_recoverAndRefresh",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native."- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 573,- "character": 34- }- ]- },- {- "id": 534,- "name": "_recoverSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 535,- "name": "_recoverSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor."- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 549,- "character": 25- }- ]- },- {- "id": 556,- "name": "_removeSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 557,- "name": "_removeSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "void"- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 659,- "character": 30- }- ]- },- {- "id": 550,- "name": "_saveSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 551,- "name": "_saveSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible"- },- "parameters": [- {- "id": 552,- "name": "session",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 635,- "character": 22- }- ]- },- {- "id": 558,- "name": "_startAutoRefreshToken",- "kind": 2048,- "kindString": "Method",- "flags": {- "isPrivate": true,- "isExported": true- },- "signatures": [- {- "id": 559,- "name": "_startAutoRefreshToken",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Clear and re-create refresh token timer"- },- "parameters": [- {- "id": 560,- "name": "value",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "time intervals in milliseconds\n"- },- "type": {- "type": "intrinsic",- "name": "number"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 670,- "character": 32- }- ]- },- {- "id": 462,- "name": "getSessionFromUrl",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 463,- "name": "getSessionFromUrl",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Gets the session data from a URL string"- },- "parameters": [- {- "id": 464,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "reflection",- "declaration": {- "id": 465,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 466,- "name": "storeSession",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "text": "Optionally store the session in the browser\n"- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 390,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 466- ]- }- ]- }- }- ]- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 467,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 468,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 391,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 469,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 391,- "character": 43- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 468,- 469- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 391,- "character": 14- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 389,- "character": 25- }- ]- },- {- "id": 474,- "name": "onAuthStateChange",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 475,- "name": "onAuthStateChange",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Receive a notification every time an auth event happens.",- "returns": "A subscription object which can be used to unsubscribe itself.\n"- },- "parameters": [- {- "id": 476,- "name": "callback",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 477,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 478,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 479,- "name": "event",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 113,- "name": "AuthChangeEvent"- }- },- {- "id": 480,- "name": "session",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 460,- "character": 29- }- ]- }- }- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 481,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 482,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 461,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 87,- "name": "Subscription"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 483,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 462,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 482,- 483- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 460,- "character": 89- }- ]- }- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 460,- "character": 19- }- ]- },- {- "id": 440,- "name": "refreshSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 441,- "name": "refreshSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Force refreshes the session including the user data in case it was updated in a different session."- },- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 442,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 443,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 303,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 445,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 305,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 444,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 304,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 443,- 445,- 444- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 302,- "character": 34- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 302,- "character": 22- }- ]- },- {- "id": 438,- "name": "session",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 439,- "name": "session",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Returns the session data, if there is an active session."- },- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 295,- "character": 9- }- ]- },- {- "id": 459,- "name": "setAuth",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 460,- "name": "setAuth",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests."- },- "parameters": [- {- "id": 461,- "name": "access_token",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "a jwt access token\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "id": 50,- "name": "Session"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 374,- "character": 9- }- ]- },- {- "id": 453,- "name": "setSession",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 454,- "name": "setSession",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Sets the session data from refresh_token and returns current Session and Error"- },- "parameters": [- {- "id": 455,- "name": "refresh_token",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "comment": {- "text": "a JWT token\n"- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 456,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 458,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 352,- "character": 45- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 457,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 352,- "character": 22- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 458,- 457- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 352,- "character": 13- }- ]- }- }- ],- "name": "Promise"- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 350,- "character": 18- }- ]- },- {- "id": 402,- "name": "signIn",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 403,- "name": "signIn",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Log in an existing user, or login via a third-party provider."- },- "parameters": [- {- "id": 404,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 405,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 406,- "name": "email",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's email address."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 408,- "name": "password",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 28- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 407,- "name": "phone",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 18- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 410,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "One of the providers supported by GoTrue."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 52- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "stringLiteral",- "value": "azure"- },- {- "type": "stringLiteral",- "value": "bitbucket"- },- {- "type": "stringLiteral",- "value": "facebook"- },- {- "type": "stringLiteral",- "value": "github"- },- {- "type": "stringLiteral",- "value": "gitlab"- },- {- "type": "stringLiteral",- "value": "google"- },- {- "type": "stringLiteral",- "value": "twitter"- },- {- "type": "stringLiteral",- "value": "apple"- },- {- "type": "stringLiteral",- "value": "discord"- },- {- "type": "stringLiteral",- "value": "twitch"- },- {- "type": "stringLiteral",- "value": "spotify"- },- {- "type": "stringLiteral",- "value": "slack"- }- ]- }- },- {- "id": 409,- "name": "refreshToken",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "A valid refresh token that was returned on login."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 175,- "character": 42- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 406,- 408,- 407,- 410,- 409- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 174,- "character": 15- }- ]- }- }- },- {- "id": 411,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 412,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 413,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 177,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 414,- "name": "scopes",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 178,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 413,- 414- ]- }- ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 165,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 167,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 176,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 431,+ "character": 34}- ]- }- },- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 415,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 421,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 186,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 420,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 185,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 418,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 183,- "character": 12- }- ],- "type": {+ {"type": "reference",- "id": 112,- "name": "Provider"- }- },- {- "id": 416,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 181,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 419,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 184,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "string"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 417,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 182,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "id": 401,+ "name": "User"}- }- ],- "groups": [+ ]+ }+ },+ {+ "id": 168,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 421,- 420,- 418,- 416,- 419,- 417- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 431,+ "character": 53}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 166,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 180,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 431,+ "character": 15}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 167,+ 168,+ 166]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 174,- "character": 14- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 187,+ "name": "generateLink",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 470,- "name": "signOut",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 531,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 188,+ "name": "generateLink",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Generates links to be sent via email or other."},- "signatures": [+ "parameters": [{- "id": 471,- "name": "signOut",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 189,+ "name": "type",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",- "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"+ "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."},"type": {- "type": "reference",- "typeArguments": [+ "type": "union",+ "types": [{- "type": "reflection",- "declaration": {- "id": 472,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "literal",+ "value": "signup"+ },+ {+ "type": "literal",+ "value": "magiclink"+ },+ {+ "type": "literal",+ "value": "recovery"+ },+ {+ "type": "literal",+ "value": "invite"+ }+ ]+ }+ },+ {+ "id": 190,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The user's email."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 191,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 192,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 194,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 473,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 445,- "character": 34- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 536,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 193,+ "name": "password",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 473- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 535,+ "character": 6}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 195,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "GoTrueClient.ts",- "line": 445,- "character": 27+ "fileName": "src/GoTrueApi.ts",+ "line": 537,+ "character": 6}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 194,+ 193,+ 195]}- }- ],- "name": "Promise"- }+ ]+ }+ },+ "defaultValue": "{}"}],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 445,- "character": 15- }- ]- },- {- "id": 386,- "name": "signUp",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 387,- "name": "signUp",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Creates a new user."- },- "parameters": [- {- "id": 388,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {- "type": "reflection",- "declaration": {- "id": 389,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 390,- "name": "email",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's email address."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 112,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 391,- "name": "password",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 112,- "character": 21- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 196,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 197,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 392,- "name": "phone",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 539,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "comment": {- "text": "The user's phone number."+ {+ "type": "reference",+ "id": 401,+ "name": "User"},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 112,- "character": 28- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ {+ "type": "reference",+ "id": 393,+ "name": "Session"}- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 390,- 391,- 392- ]- }- ],+ ]+ }+ },+ {+ "id": 198,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 111,- "character": 15+ "fileName": "src/GoTrueApi.ts",+ "line": 539,+ "character": 44}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 197,+ 198]}- }- },- {- "id": 393,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 394,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ ]+ }+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 139,+ "name": "getUrlForProvider",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 367,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 140,+ "name": "getUrlForProvider",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Generates the relevant login URL for a third-party provider."+ },+ "parameters": [+ {+ "id": 141,+ "name": "provider",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "One of the providers supported by GoTrue."+ },+ "type": {+ "type": "reference",+ "id": 391,+ "name": "Provider"+ }+ },+ {+ "id": 142,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 143,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 144,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 396,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 115,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 395,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 114,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 396,- 395- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 370,+ "character": 6}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 145,+ "name": "scopes",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "GoTrueClient.ts",- "line": 113,- "character": 12+ "fileName": "src/GoTrueApi.ts",+ "line": 371,+ "character": 6}+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 144,+ 145]}- },- "defaultValue": "{}"+ ]}- ],+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ]+ },+ {+ "id": 146,+ "name": "getUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 388,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 147,+ "name": "getUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Gets the user details."+ },+ "parameters": [+ {+ "id": 148,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT.\n"+ },"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 397,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 149,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 151,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 401,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 390,+ "character": 34+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "comment": {- "text": "Optional user metadata.\n"+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 152,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 390,+ "character": 53+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 121,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ {+ "type": "reference",+ "name": "ApiError"}- },+ ]+ }+ },+ {+ "id": 150,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 400,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 390,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 120,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ {+ "type": "reference",+ "id": 401,+ "name": "User"}- },+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 151,+ 152,+ 150+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 179,+ "name": "getUserByCookie",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 499,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 180,+ "name": "getUserByCookie",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."+ },+ "parameters": [+ {+ "id": 181,+ "name": "req",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "any"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 182,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 185,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 399,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 502,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 119,- "character": 11- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ {+ "type": "reference",+ "id": 401,+ "name": "User"}- },+ ]+ }+ },+ {+ "id": 186,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "id": 398,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 118,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 503,+ "character": 4}],- "groups": [+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 183,+ "name": "token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 401,- 400,- 399,- 398- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 500,+ "character": 4}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "intrinsic",+ "name": "string"+ }+ ]+ }+ },+ {+ "id": 184,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 117,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 501,+ "character": 4}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 185,+ 186,+ 183,+ 184]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 111,- "character": 14- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 110,+ "name": "inviteUserByEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 446,- "name": "update",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 278,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 111,+ "name": "inviteUserByEmail",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sends an invite link to an email address."},- "signatures": [+ "parameters": [{- "id": 447,- "name": "update",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },+ "id": 112,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},"comment": {- "shortText": "Updates user data, if there is a logged in user."+ "shortText": "The email address of the user."},- "parameters": [- {- "id": 448,- "name": "attributes",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reference",- "id": 82,- "name": "UserAttributes"- }- }- ],"type": {- "type": "reference",- "typeArguments": [- {- "type": "reflection",- "declaration": {- "id": 449,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 113,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 114,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 116,+ "name": "data",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [- {- "id": 450,- "name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 19- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "sources": [{- "id": 452,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 58- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },+ "fileName": "src/GoTrueApi.ts",+ "line": 282,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 115,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 451,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 38- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }+ "fileName": "src/GoTrueApi.ts",+ "line": 281,+ "character": 6}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 116,+ 115+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 117,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 118,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Variables",- "kind": 32,- "children": [- 450,- 452,- 451- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 284,+ "character": 15}],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 119,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 325,- "character": 13+ "fileName": "src/GoTrueApi.ts",+ "line": 284,+ "character": 34}+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 118,+ 119]}- }- ],- "name": "Promise"+ ]+ }}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 323,- "character": 14- }- ]- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 37,+ "name": "listUsers",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 436,- "name": "user",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 38,+ "name": "listUsers",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Get a list of users.",+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"},- "signatures": [- {- "id": 437,- "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": {+ "type": "reference",+ "typeArguments": [+ {"type": "union","types": [{- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 288,- "character": 6- }- ]- },- {- "id": 422,- "name": "verifyOTP",- "kind": 2048,- "kindString": "Method",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 423,- "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": 424,- "name": "__namedParameters",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "originalName": "__0",- "type": {"type": "reflection","declaration": {- "id": 425,+ "id": 39,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 426,- "name": "phone",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's phone number."- },+ "id": 40,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 240,- "character": 11+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 31}],"type": {- "type": "intrinsic",- "name": "string"+ "type": "literal",+ "value": null}},{- "id": 427,- "name": "token",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "comment": {- "text": "The user's password."- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 240,- "character": 18- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 426,- 427- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 239,- "character": 18- }- ]- }- }- },- {- "id": 428,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "reflection",- "declaration": {- "id": 429,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "children": [- {- "id": 430,- "name": "redirectTo",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },+ "id": 41,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 242,- "character": 16+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 43}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "reference",+ "name": "ApiError"}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 430+ 40,+ 41]}- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 241,- "character": 12- }]}},- "defaultValue": "{}"- }- ],- "type": {- "type": "reference",- "typeArguments": [{"type": "reflection","declaration": {- "id": 431,+ "id": 42,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },+ "flags": {},"children": [{- "id": 435,+ "id": 43,"name": "data",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 248,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 434,- "name": "error",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 247,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 186,- "name": "ApiError"- },- {- "type": "intrinsic",- "name": "null"- }- ]- }- },- {- "id": 433,- "name": "session",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 246,- "character": 11+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 65}],- "type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 50,- "name": "Session"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": {+ "type": "array",+ "elementType": {+ "type": "reference",+ "id": 401,+ "name": "User"+ }}},{- "id": 432,- "name": "user",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },+ "id": 44,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 245,- "character": 8+ "fileName": "src/GoTrueApi.ts",+ "line": 65,+ "character": 79}],"type": {- "type": "union",- "types": [- {- "type": "reference",- "id": 58,- "name": "User"- },- {- "type": "intrinsic",- "name": "null"- }- ]+ "type": "literal",+ "value": null}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 435,- 434,- 433,- 432+ 43,+ 44]}- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 244,- "character": 13- }]}}- ],- "name": "Promise"+ ]}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 239,- "character": 17- }- ]+ ],+ "name": "Promise"+ }}- ],- "groups": [- {- "title": "Constructors",- "kind": 512,- "children": [- 372- ]- },- {- "title": "Properties",- "kind": 1024,- "children": [- 364,- 367,- 366,- 365,- 369,- 368,- 371,- 370- ]- },+ ]+ },+ {+ "id": 169,+ "name": "refreshAccessToken",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "title": "Methods",- "kind": 2048,- "children": [- 538,- 484,- 501,- 515,- 547,- 553,- 536,- 534,- 556,- 550,- 558,- 462,- 474,- 440,- 438,- 459,- 453,- 402,- 470,- 386,- 446,- 436,- 422- ]+ "fileName": "src/GoTrueApi.ts",+ "line": 451,+ "character": 8}],- "sources": [+ "signatures": [{- "fileName": "GoTrueClient.ts",- "line": 38,- "character": 33+ "id": 170,+ "name": "refreshAccessToken",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Generates a new JWT."+ },+ "parameters": [+ {+ "id": 171,+ "name": "refreshToken",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid refresh token that was returned on login.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 172,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 173,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 453,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 174,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 453,+ "character": 37+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 173,+ 174+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }}]},{- "id": 569,- "name": "AnyFunction",- "kind": 4194304,- "kindString": "Type alias",+ "id": 120,+ "name": "resetPasswordForEmail",+ "kind": 2048,+ "kindString": "Method","flags": {},"sources": [{- "fileName": "GoTrueClient.ts",- "line": 27,- "character": 16+ "fileName": "src/GoTrueApi.ts",+ "line": 308,+ "character": 8}],- "type": {- "type": "reflection",- "declaration": {- "id": 570,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "signatures": [+ {+ "id": 121,+ "name": "resetPasswordForEmail",+ "kind": 4096,+ "kindString": "Call signature","flags": {},- "signatures": [+ "comment": {+ "shortText": "Sends a reset request to an email address."+ },+ "parameters": [{- "id": 571,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",+ "id": 122,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter","flags": {},- "parameters": [- {- "id": 572,- "name": "args",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isRest": true- },- "type": {- "type": "array",- "elementType": {- "type": "intrinsic",- "name": "any"+ "comment": {+ "shortText": "The email address of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 123,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 124,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 125,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 311,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 125+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 126,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 127,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 313,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 128,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}+ }+ }+ ]+ }+ },+ {+ "id": 129,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 313,+ "character": 32+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 127,+ 129+ ]}- }+ ]}- ],- "type": {- "type": "intrinsic",- "name": "any"}- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 27,- "character": 18- }- ]+ ],+ "name": "Promise"+ }}- }+ ]},{- "id": 573,- "name": "MaybePromisify",- "kind": 4194304,- "kindString": "Type alias",+ "id": 83,+ "name": "sendMagicLinkEmail",+ "kind": 2048,+ "kindString": "Method","flags": {},- "typeParameter": [- {- "id": 574,- "name": "T",- "kind": 131072,- "kindString": "Type parameter",- "flags": {}- }- ],"sources": [{- "fileName": "GoTrueClient.ts",- "line": 28,- "character": 19+ "fileName": "src/GoTrueApi.ts",+ "line": 207,+ "character": 8}],- "type": {- "type": "union",- "types": [- {- "type": "typeParameter",- "name": "T"+ "signatures": [+ {+ "id": 84,+ "name": "sendMagicLinkEmail",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Sends a magic login link to an email address."},- {+ "parameters": [+ {+ "id": 85,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The email address of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 86,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 87,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 88,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 210,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 88+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {"type": "reference","typeArguments": [{- "type": "typeParameter",- "name": "T"+ "type": "reflection",+ "declaration": {+ "id": 89,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 90,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 212,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 91,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}+ }+ }+ ]+ }+ },+ {+ "id": 92,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 212,+ "character": 32+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 90,+ 92+ ]+ }+ ]+ }}],"name": "Promise"}- ]- }+ }+ ]},{- "id": 575,- "name": "PromisifyMethods",- "kind": 4194304,- "kindString": "Type alias",+ "id": 93,+ "name": "sendMobileOTP",+ "kind": 2048,+ "kindString": "Method","flags": {},- "typeParameter": [- {- "id": 576,- "name": "T",- "kind": 131072,- "kindString": "Type parameter",- "flags": {}- }- ],"sources": [{- "fileName": "GoTrueClient.ts",- "line": 30,- "character": 21+ "fileName": "src/GoTrueApi.ts",+ "line": 235,+ "character": 8}],- "type": {- "type": "reflection",- "declaration": {- "id": 577,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "signatures": [+ {+ "id": 94,+ "name": "sendMobileOTP",+ "kind": 4096,+ "kindString": "Call signature","flags": {},- "sources": [+ "comment": {+ "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"+ },+ "parameters": [{- "fileName": "GoTrueClient.ts",- "line": 30,- "character": 26+ "id": 95,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The user's phone number WITH international prefix\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- ]- }- }- },- {- "id": 578,- "name": "SupportedStorage",- "kind": 4194304,- "kindString": "Type alias",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 36,- "character": 21- }- ],- "type": {- "type": "reference",- "id": 575,- "typeArguments": [- {+ ],+ "type": {"type": "reference","typeArguments": [{- "type": "reference",- "name": "Storage"- },- {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "getItem"- },- {- "type": "stringLiteral",- "value": "setItem"- },- {- "type": "stringLiteral",- "value": "removeItem"- }- ]+ "type": "reflection",+ "declaration": {+ "id": 96,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 97,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 235,+ "character": 48+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 98,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {}+ }+ }+ ]+ }+ },+ {+ "id": 99,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 235,+ "character": 65+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 97,+ 99+ ]+ }+ ]+ }}],- "name": "Pick"+ "name": "Promise"}- ],- "name": "PromisifyMethods"- }+ }+ ]},{- "id": 561,- "name": "DEFAULT_OPTIONS",- "kind": 2097152,- "kindString": "Object literal",- "flags": {- "isConst": true- },- "children": [+ "id": 175,+ "name": "setAuthCookie",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 563,- "name": "autoRefreshToken",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 21,- "character": 18- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- },- "defaultValue": "true"- },+ "fileName": "src/GoTrueApi.ts",+ "line": 473,+ "character": 2+ }+ ],+ "signatures": [{- "id": 565,- "name": "detectSessionInUrl",- "kind": 32,- "kindString": "Variable",+ "id": 176,+ "name": "setAuthCookie",+ "kind": 4096,+ "kindString": "Call signature","flags": {},- "sources": [+ "comment": {+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."+ },+ "parameters": [+ {+ "id": 177,+ "name": "req",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "any"+ }+ },{- "fileName": "GoTrueClient.ts",- "line": 23,- "character": 20+ "id": 178,+ "name": "res",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "any"+ }}],"type": {"type": "intrinsic",- "name": "boolean"- },- "defaultValue": "true"- },+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 56,+ "name": "signInWithEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 120,+ "character": 8+ }+ ],+ "signatures": [{- "id": 566,- "name": "headers",- "kind": 32,- "kindString": "Variable",+ "id": 57,+ "name": "signInWithEmail",+ "kind": 4096,+ "kindString": "Call signature","flags": {},- "sources": [+ "comment": {+ "shortText": "Logs in an existing user using their email address."+ },+ "parameters": [{- "fileName": "GoTrueClient.ts",- "line": 24,- "character": 9- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 567,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "id": 58,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter","flags": {},- "children": [- {- "id": 568,- "name": "X-Client-Info",- "kind": 32,- "kindString": "Variable",+ "comment": {+ "shortText": "The email address of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 59,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The password of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 60,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 61,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal","flags": {},- "sources": [+ "children": [{- "fileName": "lib/constants.ts",- "line": 4,- "character": 48+ "id": 62,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 124,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "`gotrue-js/${version}`"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 568+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 62+ ]+ }]}- ]- }- },- "defaultValue": "DEFAULT_HEADERS"- },- {- "id": 564,- "name": "persistSession",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 22,- "character": 16- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- },- "defaultValue": "true"- },- {- "id": 562,- "name": "url",- "kind": 32,- "kindString": "Variable",- "flags": {},- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 20,- "character": 5+ },+ "defaultValue": "{}"}],"type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "GOTRUE_URL"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 563,- 565,- 566,- 564,- 562- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 19,- "character": 21- }- ],- "type": {- "type": "intrinsic",- "name": "object"- }- }- ],- "groups": [- {- "title": "Classes",- "kind": 128,- "children": [- 363- ]- },- {- "title": "Type aliases",- "kind": 4194304,- "children": [- 569,- 573,- 575,- 578- ]- },- {- "title": "Object literals",- "kind": 2097152,- "children": [- 561- ]- }- ],- "sources": [- {- "fileName": "GoTrueClient.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 579,- "name": "\"index\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",- "children": [- {- "id": 581,- "name": "AuthChangeEvent",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 113- },- {- "id": 586,- "name": "CookieOptions",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 97- },- {- "id": 580,- "name": "Provider",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 112- },- {- "id": 582,- "name": "Session",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 50- },- {- "id": 585,- "name": "Subscription",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 87- },- {- "id": 583,- "name": "User",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 58- },- {- "id": 584,- "name": "UserAttributes",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 82- },- {- "id": 587,- "name": "UserCredentials",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 103- },- {- "id": 588,- "name": "VerifyOTPParams",- "kind": 16777216,- "kindString": "Reference",- "flags": {- "isExported": true- },- "target": 109- }- ],- "groups": [- {- "title": "References",- "kind": 16777216,- "children": [- 581,- 586,- 580,- 582,- 585,- 583,- 584,- 587,- 588- ]- }- ],- "sources": [- {- "fileName": "index.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 116,- "name": "\"lib/constants\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",- "children": [- {- "id": 118,- "name": "AUDIENCE",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 3,- "character": 21+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 63,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 64,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 126,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 65,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 126,+ "character": 37+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 64,+ 65+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }}- ],- "type": {- "type": "stringLiteral",- "value": ""- },- "defaultValue": "\"\""+ ]},{- "id": 121,- "name": "EXPIRY_MARGIN",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },+ "id": 76,+ "name": "signInWithPhone",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},"sources": [{- "fileName": "lib/constants.ts",- "line": 5,- "character": 26+ "fileName": "src/GoTrueApi.ts",+ "line": 181,+ "character": 8}],- "type": {- "type": "intrinsic",- "name": "number"- },- "defaultValue": "60 * 1000"- },- {- "id": 117,- "name": "GOTRUE_URL",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },- "sources": [+ "signatures": [{- "fileName": "lib/constants.ts",- "line": 2,- "character": 23+ "id": 77,+ "name": "signInWithPhone",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Logs in an existing user using their phone number and password."+ },+ "parameters": [+ {+ "id": 78,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The phone number of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 79,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The password of the user.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 80,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 81,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 184,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 82,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 184,+ "character": 37+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 81,+ 82+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }}- ],- "type": {- "type": "stringLiteral",- "value": "http://localhost:9999"- },- "defaultValue": "\"http://localhost:9999\""+ ]},{- "id": 122,- "name": "STORAGE_KEY",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },+ "id": 134,+ "name": "signOut",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},"sources": [{- "fileName": "lib/constants.ts",- "line": 6,- "character": 24+ "fileName": "src/GoTrueApi.ts",+ "line": 347,+ "character": 8}],- "type": {- "type": "stringLiteral",- "value": "supabase.auth.token"- },- "defaultValue": "\"supabase.auth.token\""- },- {- "id": 123,- "name": "COOKIE_OPTIONS",- "kind": 2097152,- "kindString": "Object literal",- "flags": {- "isExported": true,- "isConst": true- },- "children": [+ "signatures": [{- "id": 126,- "name": "domain",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 10,- "character": 8- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"\""- },- {- "id": 125,- "name": "lifetime",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 9,- "character": 10- }- ],- "type": {- "type": "intrinsic",- "name": "number"- },- "defaultValue": "60 * 60 * 8"- },- {- "id": 124,- "name": "name",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 8,- "character": 6- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"sb:token\""- },- {- "id": 127,- "name": "path",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/constants.ts",- "line": 11,- "character": 6- }- ],- "type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"/\""- },- {- "id": 128,- "name": "sameSite",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "id": 135,+ "name": "signOut",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Removes a logged-in session."},- "sources": [+ "parameters": [{- "fileName": "lib/constants.ts",- "line": 12,- "character": 10+ "id": 136,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT.\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}],"type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "\"lax\""- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 126,- 125,- 124,- 127,- 128- ]+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 137,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 138,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 347,+ "character": 40+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 138+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }}- ],+ ]+ },+ {+ "id": 45,+ "name": "signUpWithEmail",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},"sources": [{- "fileName": "lib/constants.ts",- "line": 7,- "character": 27+ "fileName": "src/GoTrueApi.ts",+ "line": 86,+ "character": 8}],- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 119,- "name": "DEFAULT_HEADERS",- "kind": 2097152,- "kindString": "Object literal",- "flags": {- "isExported": true,- "isConst": true- },- "children": [+ "signatures": [{- "id": 120,- "name": "X-Client-Info",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true+ "id": 46,+ "name": "signUpWithEmail",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Creates a new user using their email address.",+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"},- "sources": [+ "parameters": [+ {+ "id": 47,+ "name": "email",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The email address of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 48,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "The password of the user."+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },{- "fileName": "lib/constants.ts",- "line": 4,- "character": 48+ "id": 49,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 50,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 52,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 91,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 51,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 90,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 52,+ 51+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {- "type": "intrinsic",- "name": "string"- },- "defaultValue": "`gotrue-js/${version}`"- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 120- ]- }- ],- "sources": [- {- "fileName": "lib/constants.ts",- "line": 4,- "character": 28+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 53,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 54,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 93,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 55,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 93,+ "character": 44+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 54,+ 55+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"+ }}- ],- "type": {- "type": "intrinsic",- "name": "object"- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 118,- 121,- 117,- 122]},{- "title": "Object literals",- "kind": 2097152,- "children": [- 123,- 119- ]- }- ],- "sources": [- {- "fileName": "lib/constants.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 129,- "name": "\"lib/cookies\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",- "children": [- {- "id": 130,- "name": "Cookie",- "kind": 4194304,- "kindString": "Type alias",+ "id": 66,+ "name": "signUpWithPhone",+ "kind": 2048,+ "kindString": "Method","flags": {},"sources": [{- "fileName": "lib/cookies.ts",- "line": 1,- "character": 11+ "fileName": "src/GoTrueApi.ts",+ "line": 153,+ "character": 8}],- "type": {- "type": "reflection",- "declaration": {- "id": 131,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",+ "signatures": [+ {+ "id": 67,+ "name": "signUpWithPhone",+ "kind": 4096,+ "kindString": "Call signature","flags": {},- "children": [- {- "id": 135,- "name": "domain",- "kind": 32,- "kindString": "Variable",- "flags": {- "isOptional": true- },- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 5,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "comment": {+ "shortText": "Signs up a new user using their phone number and a password."+ },+ "parameters": [{- "id": 134,- "name": "maxAge",- "kind": 32,- "kindString": "Variable",+ "id": 68,+ "name": "phone",+ "kind": 32768,+ "kindString": "Parameter","flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 4,- "character": 8- }- ],+ "comment": {+ "shortText": "The phone number of the user."+ },"type": {"type": "intrinsic",- "name": "number"+ "name": "string"}},{- "id": 132,- "name": "name",- "kind": 32,- "kindString": "Variable",+ "id": 69,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter","flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 2,- "character": 6- }- ],+ "comment": {+ "shortText": "The password of the user."+ },"type": {"type": "intrinsic","name": "string"}},{- "id": 136,- "name": "path",- "kind": 32,- "kindString": "Variable",- "flags": {- "isOptional": true+ "id": 70,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 71,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 72,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 157,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 72+ ]+ }+ ]+ }},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 6,- "character": 6+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 73,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 74,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 159,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 75,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 159,+ "character": 44+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 74,+ 75+ ]+ }+ ]}- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]}- },+ ],+ "name": "Promise"+ }+ }+ ]+ },+ {+ "id": 153,+ "name": "updateUser",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 406,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 154,+ "name": "updateUser",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Updates the user data."+ },+ "parameters": [{- "id": 137,- "name": "sameSite",- "kind": 32,- "kindString": "Variable",- "flags": {- "isOptional": true+ "id": 155,+ "name": "jwt",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "A valid, logged-in JWT."},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 7,- "character": 10- }- ],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "intrinsic",+ "name": "string"}},{- "id": 133,- "name": "value",- "kind": 32,- "kindString": "Variable",+ "id": 156,+ "name": "attributes",+ "kind": 32768,+ "kindString": "Parameter","flags": {},- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 3,- "character": 7+ "comment": {+ "shortText": "The data you want to update.\n"+ },+ "type": {+ "type": "reference",+ "id": 426,+ "name": "UserAttributes"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 157,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 159,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 409,+ "character": 34+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 160,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 409,+ "character": 53+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 158,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 409,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 159,+ 160,+ 158+ ]+ }+ ]}- ],- "type": {- "type": "intrinsic",- "name": "string"}- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 135,- 134,- 132,- 136,- 137,- 133- ]- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 1,- "character": 13- }- ]+ ],+ "name": "Promise"+ }}- }+ ]},{- "id": 168,- "name": "deleteCookie",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },+ "id": 100,+ "name": "verifyMobileOTP",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 251,+ "character": 8+ }+ ],"signatures": [{- "id": 169,- "name": "deleteCookie",+ "id": 101,+ "name": "verifyMobileOTP","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Send User supplied Mobile OTP to be verified"},"parameters": [{- "id": 170,- "name": "req",+ "id": 102,+ "name": "phone","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "The user's phone number WITH international prefix"},"type": {"type": "intrinsic",- "name": "any"+ "name": "string"}},{- "id": 171,- "name": "res",+ "id": 103,+ "name": "token","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "token that user was sent to their mobile phone"},"type": {"type": "intrinsic",- "name": "any"+ "name": "string"}},{- "id": 172,- "name": "name",+ "id": 104,+ "name": "options","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true- },+ "flags": {},"type": {- "type": "intrinsic",- "name": "string"- }+ "type": "reflection",+ "declaration": {+ "id": 105,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 106,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 255,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 106+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {- "type": "intrinsic",- "name": "void"+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 107,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 108,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 257,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 109,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 257,+ "character": 44+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 108,+ 109+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 165,- "character": 28- }+ ]+ }+ ],+ "groups": [+ {+ "title": "Constructors",+ "kind": 512,+ "children": [+ 2]},{- "id": 151,- "name": "isSecureEnvironment",- "kind": 64,- "kindString": "Function",- "flags": {},- "signatures": [- {- "id": 152,- "name": "isSecureEnvironment",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "comment": {- "shortText": "Based on the environment and the request we know if a secure cookie can be set."- },- "parameters": [- {- "id": 153,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "type": {- "type": "intrinsic",- "name": "boolean"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 113,- "character": 28- }+ "title": "Properties",+ "kind": 1024,+ "children": [+ 22,+ 23,+ 18,+ 17]},{- "id": 138,- "name": "serialize",- "kind": 64,- "kindString": "Function",+ "title": "Methods",+ "kind": 2048,+ "children": [+ 130,+ 28,+ 161,+ 187,+ 139,+ 146,+ 179,+ 110,+ 37,+ 169,+ 120,+ 83,+ 93,+ 175,+ 56,+ 76,+ 134,+ 45,+ 66,+ 153,+ 100+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/GoTrueApi.ts",+ "line": 12,+ "character": 21+ }+ ]+ },+ {+ "id": 199,+ "name": "GoTrueClient",+ "kind": 128,+ "kindString": "Class",+ "flags": {},+ "children": [+ {+ "id": 200,+ "name": "constructor",+ "kind": 512,+ "kindString": "Constructor","flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 71,+ "character": 2+ }+ ],"signatures": [{- "id": 139,- "name": "serialize",- "kind": 4096,- "kindString": "Call signature",+ "id": 201,+ "name": "new GoTrueClient",+ "kind": 16384,+ "kindString": "Constructor signature","flags": {},"comment": {- "shortText": "Serialize data into a cookie header."+ "shortText": "Create a new client for use in the browser."},"parameters": [{- "id": 140,- "name": "name",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 141,- "name": "val",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 142,+ "id": 202,"name": "options","kind": 32768,"kindString": "Parameter",@@ -10043,816 +3799,1629 @@"type": {"type": "reflection","declaration": {- "id": 143,+ "id": 203,"name": "__type","kind": 65536,"kindString": "Type literal","flags": {},"children": [{- "id": 145,- "name": "domain",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 210,+ "name": "autoRefreshToken",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring."+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 18,- "character": 10+ "fileName": "src/GoTrueClient.ts",+ "line": 75,+ "character": 4}],"type": {"type": "intrinsic",- "name": "string"+ "name": "boolean"}},{- "id": 147,- "name": "expires",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 213,+ "name": "cookieOptions",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {},"sources": [{- "fileName": "lib/cookies.ts",- "line": 20,- "character": 11+ "fileName": "src/GoTrueClient.ts",+ "line": 78,+ "character": 4}],"type": {"type": "reference",- "name": "Date"+ "id": 439,+ "name": "CookieOptions"+ }+ },+ {+ "id": 209,+ "name": "detectSessionInUrl",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 74,+ "character": 4+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"}},{- "id": 148,- "name": "httpOnly",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 214,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 21,- "character": 12+ "fileName": "src/GoTrueClient.ts",+ "line": 79,+ "character": 4}],"type": {- "type": "intrinsic",- "name": "boolean"+ "type": "reflection",+ "declaration": {+ "id": 215,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "signatures": [+ {+ "id": 216,+ "name": "__type",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "A custom fetch implementation.\n"+ },+ "parameters": [+ {+ "id": 217,+ "name": "input",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "RequestInfo"+ }+ },+ {+ "id": 218,+ "name": "init",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {+ "isOptional": true+ },+ "type": {+ "type": "reference",+ "name": "RequestInit"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "name": "Response"+ }+ ],+ "name": "Promise"+ }+ }+ ]+ }}},{- "id": 144,- "name": "maxAge",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 205,+ "name": "headers",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Any additional headers to send to the GoTrue server."+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 17,- "character": 10+ "fileName": "src/GoTrueClient.ts",+ "line": 73,+ "character": 4}],"type": {- "type": "intrinsic",- "name": "number"+ "type": "reflection",+ "declaration": {+ "id": 206,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 207,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [+ {+ "id": 208,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ }}},{- "id": 146,- "name": "path",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 212,+ "name": "localStorage",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {},"sources": [{- "fileName": "lib/cookies.ts",- "line": 19,- "character": 8+ "fileName": "src/GoTrueClient.ts",+ "line": 77,+ "character": 4}],"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "name": "Storage"+ },+ {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "getItem"+ },+ {+ "type": "literal",+ "value": "setItem"+ },+ {+ "type": "literal",+ "value": "removeItem"+ }+ ]+ }+ ],+ "name": "Pick"+ }+ ],+ "name": "PromisifyMethods"}},{- "id": 150,- "name": "sameSite",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 211,+ "name": "persistSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Set to \"true\" if you want to automatically save the user session into local storage."+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 23,- "character": 12+ "fileName": "src/GoTrueClient.ts",+ "line": 76,+ "character": 4}],"type": {"type": "intrinsic",- "name": "string"+ "name": "boolean"}},{- "id": 149,- "name": "secure",- "kind": 32,- "kindString": "Variable",- "flags": {},+ "id": 204,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The URL of the GoTrue server."+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 22,- "character": 10+ "fileName": "src/GoTrueClient.ts",+ "line": 72,+ "character": 4}],"type": {"type": "intrinsic",- "name": "boolean"+ "name": "string"}}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 145,- 147,- 148,- 144,- 146,- 150,- 149+ 210,+ 213,+ 209,+ 214,+ 205,+ 212,+ 211,+ 204]}- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 16,- "character": 10- }]}}}],"type": {- "type": "intrinsic",- "name": "string"+ "type": "reference",+ "id": 199,+ "name": "default"}}+ ]+ },+ {+ "id": 219,+ "name": "api",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "comment": {+ "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 44,+ "character": 2+ }],+ "type": {+ "type": "reference",+ "id": 1,+ "name": "default"+ }+ },+ {+ "id": 222,+ "name": "autoRefreshToken",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 13,- "character": 18+ "fileName": "src/GoTrueClient.ts",+ "line": 54,+ "character": 12}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }},{- "id": 154,- "name": "serializeCookie",- "kind": 64,- "kindString": "Function",- "flags": {},- "signatures": [+ "id": 221,+ "name": "currentSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "comment": {+ "shortText": "The session object for the currently logged in user or null."+ },+ "sources": [{- "id": 155,- "name": "serializeCookie",- "kind": 4096,- "kindString": "Call signature",- "flags": {},- "comment": {- "shortText": "Serialize a cookie to a string."+ "fileName": "src/GoTrueClient.ts",+ "line": 52,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "parameters": [- {- "id": 156,- "name": "cookie",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 220,+ "name": "currentUser",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "comment": {+ "shortText": "The currently logged in user or null."+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 48,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 224,+ "name": "localStorage",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 56,+ "character": 12+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "reference",+ "typeArguments": [+ {"type": "reference",- "id": 130,- "name": "Cookie"- }- },- {- "id": 157,- "name": "secure",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "boolean"+ "name": "Storage"+ },+ {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "getItem"+ },+ {+ "type": "literal",+ "value": "setItem"+ },+ {+ "type": "literal",+ "value": "removeItem"+ }+ ]}- }- ],- "type": {- "type": "intrinsic",- "name": "string"+ ],+ "name": "Pick"}+ ],+ "name": "PromisifyMethods"+ }+ },+ {+ "id": 223,+ "name": "persistSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 55,+ "character": 12+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ },+ {+ "id": 226,+ "name": "refreshTokenTimer",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 58,+ "character": 12}],+ "type": {+ "type": "reference",+ "name": "Timeout"+ }+ },+ {+ "id": 225,+ "name": "stateChangeEmitters",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true+ },"sources": [{- "fileName": "lib/cookies.ts",- "line": 130,- "character": 24+ "fileName": "src/GoTrueClient.ts",+ "line": 57,+ "character": 12}- ]+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "intrinsic",+ "name": "string"+ },+ {+ "type": "reference",+ "id": 431,+ "name": "Subscription"+ }+ ],+ "name": "Map"+ },+ "defaultValue": "..."},{- "id": 163,- "name": "setCookie",- "kind": 64,- "kindString": "Function",+ "id": 368,+ "name": "_callRefreshToken",+ "kind": 2048,+ "kindString": "Method","flags": {- "isExported": true+ "isPrivate": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 613,+ "character": 16+ }+ ],"signatures": [{- "id": 164,- "name": "setCookie",+ "id": 369,+ "name": "_callRefreshToken","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Set one or more cookies."- },+ "flags": {},"parameters": [{- "id": 165,- "name": "req",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 166,- "name": "res",+ "id": 370,+ "name": "refresh_token","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true- },+ "flags": {},"type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 167,- "name": "cookie",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true+ "type": "union",+ "types": [+ {+ "type": "intrinsic",+ "name": "undefined"+ },+ {+ "type": "intrinsic",+ "name": "string"+ }+ ]},- "type": {- "type": "reference",- "id": 130,- "name": "Cookie"- }+ "defaultValue": "..."}],"type": {- "type": "intrinsic",- "name": "void"+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [+ {+ "type": "reflection",+ "declaration": {+ "id": 371,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 372,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ },+ {+ "id": 373,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 372,+ 373+ ]+ }+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 374,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 375,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 376,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "ApiError"+ },+ "defaultValue": "..."+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 375,+ 376+ ]+ }+ ]+ }+ }+ ]+ }+ ],+ "name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 161,- "character": 25- }]},{- "id": 158,- "name": "setCookies",- "kind": 64,- "kindString": "Function",+ "id": 312,+ "name": "_handleEmailSignIn",+ "kind": 2048,+ "kindString": "Method","flags": {- "isExported": true+ "isPrivate": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 484,+ "character": 16+ }+ ],"signatures": [{- "id": 159,- "name": "setCookies",+ "id": 313,+ "name": "_handleEmailSignIn","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Set one or more cookies."- },+ "flags": {},"parameters": [{- "id": 160,- "name": "req",+ "id": 314,+ "name": "email","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true- },+ "flags": {},"type": {"type": "intrinsic",- "name": "any"+ "name": "string"}},{- "id": 161,- "name": "res",+ "id": 315,+ "name": "password","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true- },+ "flags": {},"type": {"type": "intrinsic",- "name": "any"+ "name": "string"}},{- "id": 162,- "name": "cookies",+ "id": 316,+ "name": "options","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true- },+ "flags": {},"type": {- "type": "reference",- "typeArguments": [- {- "type": "reference",- "id": 130,- "name": "Cookie"- }- ],- "name": "Array"- }- }- ],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 145,- "character": 26- }- ]- }- ],- "groups": [- {- "title": "Type aliases",- "kind": 4194304,- "children": [- 130- ]- },- {- "title": "Functions",- "kind": 64,- "children": [- 168,- 151,- 138,- 154,- 163,- 158- ]- }- ],- "sources": [- {- "fileName": "lib/cookies.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 1,- "name": "\"lib/fetch\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/fetch.ts",- "children": [- {- "id": 2,- "name": "FetchOptions",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [- {- "id": 3,- "name": "headers",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 4,- "character": 9- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {"type": "reflection","declaration": {- "id": 4,+ "id": 317,"name": "__type","kind": 65536,"kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [+ "flags": {},+ "children": [{- "id": 5,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",+ "id": 318,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "parameters": [+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 488,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 318+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [+ {+ "type": "reflection",+ "declaration": {+ "id": 319,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 320,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },{- "id": 6,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true+ "id": 323,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 322,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null},+ "defaultValue": "null"+ },+ {+ "id": 321,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"type": {- "type": "intrinsic",- "name": "string"+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 320,+ 323,+ 322,+ 321+ ]+ }+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 324,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 325,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"}+ },+ {+ "id": 328,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 327,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ },+ "defaultValue": "data"+ },+ {+ "id": 326,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ },+ "defaultValue": "data.user"}],- "type": {- "type": "intrinsic",- "name": "string"- }+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 325,+ 328,+ 327,+ 326+ ]+ }+ ]}- ]- }- }- ]- }- },- {- "id": 7,- "name": "noResolveJson",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 7,- "character": 15- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "false"- },- {- "type": "intrinsic",- "name": "true"+ }+ ]}- ]+ ],+ "name": "Promise"}}- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 3,- 7- ]- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 3,- "character": 29- }]},{- "id": 8,- "name": "RequestMethodType",- "kind": 4194304,- "kindString": "Type alias",+ "id": 329,+ "name": "_handlePhoneSignIn",+ "kind": 2048,+ "kindString": "Method","flags": {- "isExported": true+ "isPrivate": true},"sources": [{- "fileName": "lib/fetch.ts",- "line": 10,- "character": 29+ "fileName": "src/GoTrueClient.ts",+ "line": 508,+ "character": 16}],- "type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "GET"- },- {- "type": "stringLiteral",- "value": "POST"- },- {- "type": "stringLiteral",- "value": "PUT"- },- {- "type": "stringLiteral",- "value": "PATCH"- },- {- "type": "stringLiteral",- "value": "DELETE"- }- ]- }- },- {- "id": 9,- "name": "_getErrorMessage",- "kind": 64,- "kindString": "Function",- "flags": {- "isConst": true- },"signatures": [{- "id": 10,- "name": "_getErrorMessage",+ "id": 330,+ "name": "_handlePhoneSignIn","kind": 4096,"kindString": "Call signature","flags": {},"parameters": [{- "id": 11,- "name": "err",+ "id": 331,+ "name": "phone","kind": 32768,"kindString": "Parameter","flags": {},"type": {"type": "intrinsic",- "name": "any"+ "name": "string"+ }+ },+ {+ "id": 332,+ "name": "password",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "type": {+ "type": "reference",+ "typeArguments": [+ {+ "type": "union",+ "types": [+ {+ "type": "reflection",+ "declaration": {+ "id": 333,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 334,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 337,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 336,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 335,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 334,+ 337,+ 336,+ 335+ ]+ }+ ]+ }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 338,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 339,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ },+ {+ "id": 342,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 341,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 393,+ "name": "Session"+ },+ "defaultValue": "data"+ },+ {+ "id": 340,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ },+ "defaultValue": "data.user"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 339,+ 342,+ 341,+ 340+ ]+ }+ ]+ }+ }+ ]}- }- ],- "type": {- "type": "intrinsic",- "name": "string"+ ],+ "name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 12,- "character": 22- }]},{- "id": 16,- "name": "_getRequestParams",- "kind": 64,- "kindString": "Function",+ "id": 343,+ "name": "_handleProviderSignIn",+ "kind": 2048,+ "kindString": "Method","flags": {- "isConst": true+ "isPrivate": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 524,+ "character": 10+ }+ ],"signatures": [{- "id": 17,- "name": "_getRequestParams",+ "id": 344,+ "name": "_handleProviderSignIn","kind": 4096,"kindString": "Call signature","flags": {},"parameters": [{- "id": 18,- "name": "method",+ "id": 345,+ "name": "provider","kind": 32768,"kindString": "Parameter","flags": {},"type": {"type": "reference",- "id": 8,- "name": "RequestMethodType"+ "id": 391,+ "name": "Provider"}},{- "id": 19,+ "id": 346,"name": "options","kind": 32768,"kindString": "Parameter",- "flags": {- "isOptional": true- },+ "flags": {},"type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- },- {- "id": 20,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isOptional": true+ "type": "reflection",+ "declaration": {+ "id": 347,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 348,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 527,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 349,+ "name": "scopes",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 528,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 348,+ 349+ ]+ }+ ]+ }},- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }+ "defaultValue": "{}"}],"type": {- "type": "reflection",- "declaration": {- "id": 21,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {},- "indexSignature": [- {- "id": 22,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",+ "type": "union",+ "types": [+ {+ "type": "reflection",+ "declaration": {+ "id": 350,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal","flags": {},- "parameters": [+ "children": [+ {+ "id": 353,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 356,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 351,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 391,+ "name": "Provider"+ }+ },+ {+ "id": 354,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },{- "id": 23,- "name": "k",- "kind": 32768,- "kindString": "Parameter",+ "id": 352,+ "name": "url",+ "kind": 1024,+ "kindString": "Property","flags": {},"type": {"type": "intrinsic","name": "string"}+ },+ {+ "id": 355,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"}],- "type": {- "type": "intrinsic",- "name": "any"- }+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 353,+ 356,+ 351,+ 354,+ 352,+ 355+ ]+ }+ ]}- ]- }+ },+ {+ "type": "reflection",+ "declaration": {+ "id": 357,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 358,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 361,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "reference",+ "name": "ApiError"+ },+ "defaultValue": "..."+ },+ {+ "id": 362,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "undefined"+ }+ },+ {+ "id": 360,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ },+ {+ "id": 363,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "undefined"+ }+ },+ {+ "id": 359,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "type": {+ "type": "literal",+ "value": null+ },+ "defaultValue": "null"+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 358,+ 361,+ 362,+ 360,+ 363,+ 359+ ]+ }+ ]+ }+ }+ ]}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 27,- "character": 23- }]},{- "id": 24,- "name": "_handleRequest",- "kind": 64,- "kindString": "Function",- "flags": {},+ "id": 377,+ "name": "_notifyAllSubscribers",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 631,+ "character": 10+ }+ ],"signatures": [{- "id": 25,- "name": "_handleRequest",+ "id": 378,+ "name": "_notifyAllSubscribers","kind": 4096,"kindString": "Call signature","flags": {},"parameters": [{- "id": 26,- "name": "method",+ "id": 379,+ "name": "event","kind": 32768,"kindString": "Parameter","flags": {},"type": {"type": "reference",- "id": 8,- "name": "RequestMethodType"- }- },- {- "id": 27,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "string"+ "id": 392,+ "name": "AuthChangeEvent"}- },+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 383,+ "name": "_persistSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 658,+ "character": 10+ }+ ],+ "signatures": [+ {+ "id": 384,+ "name": "_persistSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [{- "id": 28,- "name": "options",+ "id": 385,+ "name": "currentSession","kind": 32768,"kindString": "Parameter",- "flags": {- "isOptional": true- },+ "flags": {},"type": {"type": "reference",- "id": 2,- "name": "FetchOptions"+ "id": 393,+ "name": "Session"}- },- {- "id": 29,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isOptional": true- },- "type": {+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 366,+ "name": "_recoverAndRefresh",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 577,+ "character": 16+ }+ ],+ "signatures": [+ {+ "id": 367,+ "name": "_recoverAndRefresh",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native."+ },+ "type": {+ "type": "reference",+ "typeArguments": [+ {"type": "union","types": [{@@ -10860,210 +5429,262 @@"name": "undefined"},{- "type": "intrinsic",- "name": "object"+ "type": "literal",+ "value": null}]}- }- ],- "type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }],"name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 40,- "character": 29- }]},{- "id": 30,- "name": "get",- "kind": 64,- "kindString": "Function",+ "id": 364,+ "name": "_recoverSession",+ "kind": 2048,+ "kindString": "Method","flags": {- "isExported": true+ "isPrivate": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 553,+ "character": 10+ }+ ],"signatures": [{- "id": 31,- "name": "get",+ "id": 365,+ "name": "_recoverSession","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor."},- "parameters": [- {- "id": 32,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {+ "type": {+ "type": "union",+ "types": [+ {"type": "intrinsic",- "name": "string"- }- },- {- "id": 33,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true+ "name": "undefined"},- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"+ {+ "type": "literal",+ "value": null}- }- ],+ ]+ }+ }+ ]+ },+ {+ "id": 386,+ "name": "_removeSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {+ "isPrivate": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 663,+ "character": 16+ }+ ],+ "signatures": [+ {+ "id": 387,+ "name": "_removeSession",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},"type": {"type": "reference","typeArguments": [{"type": "intrinsic",- "name": "any"+ "name": "void"}],"name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 58,- "character": 25- }]},{- "id": 12,- "name": "handleError",- "kind": 64,- "kindString": "Function",+ "id": 380,+ "name": "_saveSession",+ "kind": 2048,+ "kindString": "Method","flags": {- "isConst": true+ "isPrivate": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 639,+ "character": 10+ }+ ],"signatures": [{- "id": 13,- "name": "handleError",+ "id": 381,+ "name": "_saveSession","kind": 4096,"kindString": "Call signature","flags": {},+ "comment": {+ "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible"+ },"parameters": [{- "id": 14,- "name": "error",- "kind": 32768,- "kindString": "Parameter",- "flags": {},- "type": {- "type": "intrinsic",- "name": "any"- }- },- {- "id": 15,- "name": "reject",+ "id": 382,+ "name": "session","kind": 32768,"kindString": "Parameter","flags": {},"type": {- "type": "intrinsic",- "name": "any"+ "type": "reference",+ "id": 393,+ "name": "Session"}}],"type": {"type": "intrinsic",- "name": "any"+ "name": "void"}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 15,- "character": 17- }]},{- "id": 34,- "name": "post",- "kind": 64,- "kindString": "Function",+ "id": 388,+ "name": "_startAutoRefreshToken",+ "kind": 2048,+ "kindString": "Method","flags": {- "isExported": true+ "isPrivate": true},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 674,+ "character": 10+ }+ ],"signatures": [{- "id": 35,- "name": "post",+ "id": 389,+ "name": "_startAutoRefreshToken","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Clear and re-create refresh token timer"},"parameters": [{- "id": 36,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 37,- "name": "body",+ "id": 390,+ "name": "value","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "time intervals in milliseconds\n"},"type": {"type": "intrinsic",- "name": "object"+ "name": "number"}- },+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ },+ {+ "id": 290,+ "name": "getSessionFromUrl",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 393,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 291,+ "name": "getSessionFromUrl",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Gets the session data from a URL string"+ },+ "parameters": [{- "id": 38,+ "id": 292,"name": "options","kind": 32768,"kindString": "Parameter","flags": {- "isExported": true,"isOptional": true},"type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"+ "type": "reflection",+ "declaration": {+ "id": 293,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 294,+ "name": "storeSession",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "Optionally store the session in the browser\n"+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 394,+ "character": 4+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "boolean"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 294+ ]+ }+ ]+ }}}],@@ -11071,2333 +5692,3121 @@"type": "reference","typeArguments": [{- "type": "intrinsic",- "name": "any"+ "type": "reflection",+ "declaration": {+ "id": 295,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 296,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 395,+ "character": 16+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 297,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 395,+ "character": 38+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 296,+ 297+ ]+ }+ ]+ }}],"name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 62,- "character": 26- }]},{- "id": 39,- "name": "put",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },+ "id": 302,+ "name": "onAuthStateChange",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 464,+ "character": 2+ }+ ],"signatures": [{- "id": 40,- "name": "put",+ "id": 303,+ "name": "onAuthStateChange","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Receive a notification every time an auth event happens.",+ "returns": "A subscription object which can be used to unsubscribe itself.\n"},"parameters": [{- "id": 41,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 42,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 43,- "name": "options",+ "id": 304,+ "name": "callback","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },+ "flags": {},"type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"+ "type": "reflection",+ "declaration": {+ "id": 305,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "signatures": [+ {+ "id": 306,+ "name": "__type",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "parameters": [+ {+ "id": 307,+ "name": "event",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 392,+ "name": "AuthChangeEvent"+ }+ },+ {+ "id": 308,+ "name": "session",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "void"+ }+ }+ ]+ }}}],"type": {- "type": "reference",- "typeArguments": [- {- "type": "intrinsic",- "name": "any"- }- ],- "name": "Promise"+ "type": "reflection",+ "declaration": {+ "id": 309,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 310,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 465,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 431,+ "name": "Subscription"+ }+ ]+ }+ },+ {+ "id": 311,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 466,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 310,+ 311+ ]+ }+ ]+ }}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 66,- "character": 25- }]},{- "id": 44,- "name": "remove",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },+ "id": 268,+ "name": "refreshSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 306,+ "character": 8+ }+ ],"signatures": [{- "id": 45,- "name": "remove",+ "id": 269,+ "name": "refreshSession","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Force refreshes the session including the user data in case it was updated in a different session."},- "parameters": [- {- "id": 46,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 47,- "name": "body",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "object"- }- },- {- "id": 48,- "name": "options",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "reference",- "id": 2,- "name": "FetchOptions"- }- }- ],"type": {"type": "reference","typeArguments": [{- "type": "intrinsic",- "name": "any"+ "type": "reflection",+ "declaration": {+ "id": 270,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 271,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 307,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 273,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 309,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 272,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 308,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 271,+ 273,+ 272+ ]+ }+ ]+ }}],"name": "Promise"}}- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 70,- "character": 28- }- ]- }- ],- "groups": [- {- "title": "Interfaces",- "kind": 256,- "children": [- 2]},{- "title": "Type aliases",- "kind": 4194304,- "children": [- 8- ]- },- {- "title": "Functions",- "kind": 64,- "children": [- 9,- 16,- 24,- 30,- 12,- 34,- 39,- 44- ]- }- ],- "sources": [- {- "fileName": "lib/fetch.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 173,- "name": "\"lib/helpers\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",- "children": [- {- "id": 174,- "name": "expiresAt",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },+ "id": 266,+ "name": "session",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 299,+ "character": 2+ }+ ],"signatures": [{- "id": 175,- "name": "expiresAt",+ "id": 267,+ "name": "session","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Returns the session data, if there is an active session."},- "parameters": [- {- "id": 176,- "name": "expiresIn",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "type": {- "type": "intrinsic",- "name": "number"+ {+ "type": "reference",+ "id": 393,+ "name": "Session"}- }- ],- "type": {- "type": "intrinsic",- "name": "number"+ ]}}- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 1,- "character": 25- }]},{- "id": 181,- "name": "getParameterByName",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },+ "id": 287,+ "name": "setAuth",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 378,+ "character": 2+ }+ ],"signatures": [{- "id": 182,- "name": "getParameterByName",+ "id": 288,+ "name": "setAuth","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests."},"parameters": [{- "id": 183,- "name": "name",+ "id": 289,+ "name": "access_token","kind": 32768,"kindString": "Parameter",- "flags": {- "isExported": true+ "flags": {},+ "comment": {+ "shortText": "a jwt access token\n"},"type": {"type": "intrinsic","name": "string"}- },- {- "id": 184,- "name": "url",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true,- "isOptional": true- },- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "null"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "reference",+ "id": 393,+ "name": "Session"}}- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 16,- "character": 34- }]},{- "id": 179,- "name": "isBrowser",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true,- "isConst": true- },- "signatures": [- {- "id": 180,- "name": "isBrowser",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "boolean"- }- }- ],+ "id": 281,+ "name": "setSession",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},"sources": [{- "fileName": "lib/helpers.ts",- "line": 14,- "character": 22- }- ]- },- {- "id": 177,- "name": "uuid",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 178,- "name": "uuid",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }+ "fileName": "src/GoTrueClient.ts",+ "line": 354,+ "character": 8}],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 6,- "character": 20- }- ]- }- ],- "groups": [- {- "title": "Functions",- "kind": 64,- "children": [- 174,- 181,- 179,- 177- ]- }- ],- "sources": [- {- "fileName": "lib/helpers.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 359,- "name": "\"lib/polyfills\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",- "children": [- {- "id": 360,- "name": "polyfillGlobalThis",- "kind": 64,- "kindString": "Function",- "flags": {- "isExported": true- },"signatures": [{- "id": 361,- "name": "polyfillGlobalThis",+ "id": 282,+ "name": "setSession","kind": 4096,"kindString": "Call signature",- "flags": {- "isExported": true- },+ "flags": {},"comment": {- "shortText": "https://mathiasbynens.be/notes/globalthis"+ "shortText": "Sets the session data from refresh_token and returns current Session and Error"},+ "parameters": [+ {+ "id": 283,+ "name": "refresh_token",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "comment": {+ "shortText": "a JWT token\n"+ },+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],"type": {- "type": "intrinsic",- "name": "void"+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 284,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 286,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 356,+ "character": 40+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 285,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 356,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 286,+ 285+ ]+ }+ ]+ }+ }+ ],+ "name": "Promise"}}- ],+ ]+ },+ {+ "id": 239,+ "name": "signIn",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},"sources": [{- "fileName": "lib/polyfills.ts",- "line": 4,- "character": 34+ "fileName": "src/GoTrueClient.ts",+ "line": 178,+ "character": 8}- ]- }- ],- "groups": [- {- "title": "Functions",- "kind": 64,- "children": [- 360- ]- }- ],- "sources": [- {- "fileName": "lib/polyfills.ts",- "line": 1,- "character": 0- }- ]- },- {- "id": 49,- "name": "\"lib/types\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",- "children": [- {- "id": 97,- "name": "CookieOptions",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [+ ],+ "signatures": [{- "id": 100,- "name": "domain",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "id": 240,+ "name": "signIn",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Log in an existing user, or login via a third-party provider."},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 102,- "character": 8- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"+ "id": 241,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 445,+ "name": "UserCredentials"}- ]- }- },- {- "id": 99,- "name": "lifetime",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [+ },{- "fileName": "lib/types.ts",- "line": 100,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"+ "id": 242,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 243,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 244,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 181,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 245,+ "name": "scopes",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 182,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 244,+ 245+ ]+ }+ ]+ }},- {- "type": "intrinsic",- "name": "number"- }- ]- }- },- {- "id": 98,- "name": "name",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 98,- "character": 6+ "defaultValue": "{}"}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 246,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 252,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 190,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 251,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 189,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 249,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 187,+ "character": 4+ }+ ],+ "type": {+ "type": "reference",+ "id": 391,+ "name": "Provider"+ }+ },+ {+ "id": 247,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 185,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 250,+ "name": "url",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 188,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "intrinsic",+ "name": "string"+ }+ ]+ }+ },+ {+ "id": 248,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 186,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 252,+ 251,+ 249,+ 247,+ 250,+ 248+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 298,+ "name": "signOut",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 101,- "name": "path",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "fileName": "src/GoTrueClient.ts",+ "line": 449,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 299,+ "name": "signOut",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",+ "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"},- "sources": [- {- "fileName": "lib/types.ts",- "line": 103,- "character": 6- }- ],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 300,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 301,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 449,+ "character": 29+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 301+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}- },- {- "id": 102,- "name": "sameSite",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ }+ ]+ },+ {+ "id": 227,+ "name": "signUp",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 115,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 228,+ "name": "signUp",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Creates a new user."},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 105,- "character": 10+ "id": 229,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 445,+ "name": "UserCredentials"+ }+ },+ {+ "id": 230,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 231,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 233,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 119,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 232,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 118,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 233,+ 232+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 234,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 238,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 125,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 237,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 124,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 236,+ "name": "session",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 123,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 235,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 122,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 238,+ 237,+ 236,+ 235+ ]+ }+ ]+ }}- ]+ ],+ "name": "Promise"}}- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 100,- 99,- 98,- 101,- 102- ]- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 96,- "character": 30- }]},{- "id": 50,- "name": "Session",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [+ "id": 274,+ "name": "update",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 52,- "name": "access_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 24,- "character": 14- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 54,- "name": "expires_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 32,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "number"- }- ]- }- },- {- "id": 53,- "name": "expires_in",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },+ "fileName": "src/GoTrueClient.ts",+ "line": 327,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 275,+ "name": "update",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},"comment": {- "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 28,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "number"- }- ]- }- },- {- "id": 51,- "name": "provider_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "shortText": "Updates user data, if there is a logged in user."},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 23,- "character": 16- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "string"- },- {- "type": "intrinsic",- "name": "null"+ "id": 276,+ "name": "attributes",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 426,+ "name": "UserAttributes"}- ]- }- },- {- "id": 55,- "name": "refresh_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 33,- "character": 15}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "type": "reference",+ "typeArguments": [{- "type": "intrinsic",- "name": "string"+ "type": "reflection",+ "declaration": {+ "id": 277,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 278,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 329,+ "character": 15+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ },+ {+ "id": 280,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 329,+ "character": 53+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]+ }+ },+ {+ "id": 279,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 329,+ "character": 34+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ }+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 278,+ 280,+ 279+ ]+ }+ ]+ }}- ]- }- },- {- "id": 56,- "name": "token_type",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 34,- "character": 12- }- ],- "type": {- "type": "intrinsic",- "name": "string"+ ],+ "name": "Promise"}- },+ }+ ]+ },+ {+ "id": 264,+ "name": "user",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 57,+ "fileName": "src/GoTrueClient.ts",+ "line": 292,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 265,"name": "user",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "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"},- "sources": [- {- "fileName": "lib/types.ts",- "line": 35,- "character": 6- }- ],"type": {"type": "union","types": [{- "type": "reference",- "id": 58,- "name": "User"+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "null"+ "type": "reference",+ "id": 401,+ "name": "User"}]}}- ],- "groups": [- {- "title": "Properties",- "kind": 1024,- "children": [- 52,- 54,- 53,- 51,- 55,- 56,- 57- ]- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 22,- "character": 24- }]},{- "id": 87,- "name": "Subscription",- "kind": 256,- "kindString": "Interface",- "flags": {- "isExported": true- },- "children": [+ "id": 253,+ "name": "verifyOTP",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [{- "id": 89,- "name": "callback",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },+ "fileName": "src/GoTrueClient.ts",+ "line": 243,+ "character": 8+ }+ ],+ "signatures": [+ {+ "id": 254,+ "name": "verifyOTP",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},"comment": {- "shortText": "The function to call every time there is an event. eg: (eventName) => {}"+ "shortText": "Log in a user given a User supplied OTP received via mobile."},- "sources": [+ "parameters": [+ {+ "id": 255,+ "name": "__namedParameters",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 451,+ "name": "VerifyOTPParams"+ }+ },{- "fileName": "lib/types.ts",- "line": 89,- "character": 10+ "id": 256,+ "name": "options",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 257,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [+ {+ "id": 258,+ "name": "redirectTo",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 246,+ "character": 6+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 258+ ]+ }+ ]+ }+ },+ "defaultValue": "{}"}],"type": {- "type": "reflection",- "declaration": {- "id": 90,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 91,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "parameters": [+ "type": "reference",+ "typeArguments": [+ {+ "type": "reflection",+ "declaration": {+ "id": 259,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "id": 92,- "name": "event",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },+ "id": 263,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 252,+ "character": 4+ }+ ],"type": {- "type": "reference",- "id": 113,- "name": "AuthChangeEvent"+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 401,+ "name": "User"+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]+ }+ },+ {+ "id": 262,+ "name": "error",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 251,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "name": "ApiError"+ }+ ]}},{- "id": 93,+ "id": 261,"name": "session",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 250,+ "character": 4+ }+ ],"type": {"type": "union","types": [+ {+ "type": "literal",+ "value": null+ },{"type": "reference",- "id": 50,+ "id": 393,"name": "Session"+ }+ ]+ }+ },+ {+ "id": 260,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 249,+ "character": 4+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},{- "type": "intrinsic",- "name": "null"+ "type": "reference",+ "id": 401,+ "name": "User"}]}}],- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 89,- "character": 11+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 263,+ 262,+ 261,+ 260+ ]+ }+ ]}- ]- }- }- },- {- "id": 88,- "name": "id",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "comment": {- "shortText": "The subscriber UUID. This will be set by the client."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 85,- "character": 4- }- ],- "type": {- "type": "intrinsic",- "name": "string"+ }+ ],+ "name": "Promise"}- },+ }+ ]+ }+ ],+ "groups": [+ {+ "title": "Constructors",+ "kind": 512,+ "children": [+ 200+ ]+ },+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 219,+ 222,+ 221,+ 220,+ 224,+ 223,+ 226,+ 225+ ]+ },+ {+ "title": "Methods",+ "kind": 2048,+ "children": [+ 368,+ 312,+ 329,+ 343,+ 377,+ 383,+ 366,+ 364,+ 386,+ 380,+ 388,+ 290,+ 302,+ 268,+ 266,+ 287,+ 281,+ 239,+ 298,+ 227,+ 274,+ 264,+ 253+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/GoTrueClient.ts",+ "line": 39,+ "character": 21+ }+ ]+ },+ {+ "id": 439,+ "name": "CookieOptions",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 442,+ "name": "domain",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 94,- "name": "unsubscribe",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "comment": {- "shortText": "Call this to remove the listener."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 93,- "character": 13- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 95,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "signatures": [- {- "id": 96,- "name": "__call",- "kind": 4096,- "kindString": "Call signature",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "void"- }- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 93,- "character": 14- }- ]- }- }+ "fileName": "src/lib/types.ts",+ "line": 103,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 441,+ "name": "lifetime",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 101,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "number"+ }+ },+ {+ "id": 440,+ "name": "name",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 99,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 443,+ "name": "path",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 104,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 444,+ "name": "sameSite",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 106,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 442,+ 441,+ 440,+ 443,+ 444+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 97,+ "character": 17+ }+ ]+ },+ {+ "id": 393,+ "name": "Session",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 395,+ "name": "access_token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 24,+ "character": 2}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 397,+ "name": "expires_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."+ },+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 89,- 88,- 94- ]+ "fileName": "src/lib/types.ts",+ "line": 32,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "number"+ }+ },+ {+ "id": 396,+ "name": "expires_in",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."+ },"sources": [{- "fileName": "lib/types.ts",- "line": 81,- "character": 29+ "fileName": "src/lib/types.ts",+ "line": 28,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "number"+ }},{- "id": 58,- "name": "User",- "kind": 256,- "kindString": "Interface",+ "id": 394,+ "name": "provider_token",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 72,- "name": "action_link",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 49,- "character": 13- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 60,- "name": "app_metadata",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 39,- "character": 14- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 61,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 63,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 64,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }- }- ],- "children": [- {- "id": 62,- "name": "provider",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 40,- "character": 12- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- }- ],- "groups": [- {- "title": "Variables",- "kind": 32,- "children": [- 62- ]- }- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 39,- "character": 15- }- ]- }- }- },- {- "id": 69,- "name": "aud",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 46,- "character": 5- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 70,- "name": "confirmation_sent_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 47,- "character": 22- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 76,- "name": "confirmed_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 53,- "character": 14- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 75,- "name": "created_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true+ "fileName": "src/lib/types.ts",+ "line": 23,+ "character": 2+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "lib/types.ts",- "line": 52,- "character": 12- }- ],- "type": {+ {"type": "intrinsic","name": "string"}- },- {- "id": 73,- "name": "email",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ ]+ }+ },+ {+ "id": 398,+ "name": "refresh_token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 33,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 399,+ "name": "token_type",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 34,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 400,+ "name": "user",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 35,+ "character": 2+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null},- "sources": [- {- "fileName": "lib/types.ts",- "line": 50,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ {+ "type": "reference",+ "id": 401,+ "name": "User"}- },+ ]+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 395,+ 397,+ 396,+ 394,+ 398,+ 399,+ 400+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 22,+ "character": 17+ }+ ]+ },+ {+ "id": 431,+ "name": "Subscription",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 432,+ "name": "id",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "comment": {+ "shortText": "The subscriber UUID. This will be set by the client."+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 86,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 433,+ "name": "callback",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 90,+ "character": 2+ }+ ],+ "signatures": [{- "id": 77,- "name": "email_confirmed_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ "id": 434,+ "name": "callback",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"},- "sources": [+ "parameters": [{- "fileName": "lib/types.ts",- "line": 54,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"+ "id": 435,+ "name": "event",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "reference",+ "id": 392,+ "name": "AuthChangeEvent"}- ]- }- },- {- "id": 59,- "name": "id",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 38,- "character": 4- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },- {- "id": 79,- "name": "last_sign_in_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [+ },{- "fileName": "lib/types.ts",- "line": 56,- "character": 17- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"+ "id": 436,+ "name": "session",+ "kind": 32768,+ "kindString": "Parameter",+ "flags": {},+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": null+ },+ {+ "type": "reference",+ "id": 393,+ "name": "Session"+ }+ ]}- ]- }- },- {- "id": 74,- "name": "phone",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 51,- "character": 7}],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "intrinsic",+ "name": "void"}- },- {- "id": 78,- "name": "phone_confirmed_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true+ }+ ]+ },+ {+ "id": 437,+ "name": "unsubscribe",+ "kind": 2048,+ "kindString": "Method",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 94,+ "character": 2+ }+ ],+ "signatures": [+ {+ "id": 438,+ "name": "unsubscribe",+ "kind": 4096,+ "kindString": "Call signature",+ "flags": {},+ "comment": {+ "shortText": "Call this to remove the listener."},- "sources": [- {- "fileName": "lib/types.ts",- "line": 55,- "character": 20- }- ],"type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]+ "type": "intrinsic",+ "name": "void"}- },- {- "id": 71,- "name": "recovery_sent_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [+ }+ ]+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 432+ ]+ },+ {+ "title": "Methods",+ "kind": 2048,+ "children": [+ 433,+ 437+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 82,+ "character": 17+ }+ ]+ },+ {+ "id": 401,+ "name": "User",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 416,+ "name": "action_link",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 50,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 403,+ "name": "app_metadata",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 39,+ "character": 2+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 404,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "children": [{- "fileName": "lib/types.ts",- "line": 48,- "character": 18- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"+ "id": 405,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true},- {+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 40,+ "character": 4+ }+ ],+ "type": {"type": "intrinsic","name": "string"}- ]- }- },- {- "id": 80,- "name": "role",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 57,- "character": 6}],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 81,- "name": "updated_at",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [+ "groups": [{- "fileName": "lib/types.ts",- "line": 58,- "character": 12+ "title": "Properties",+ "kind": 1024,+ "children": [+ 405+ ]}],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "indexSignature": {+ "id": 406,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [{- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 65,- "name": "user_metadata",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 43,- "character": 15- }- ],- "type": {- "type": "reflection",- "declaration": {- "id": 66,- "name": "__type",- "kind": 65536,- "kindString": "Type literal",- "flags": {- "isExported": true- },- "indexSignature": [- {- "id": 67,- "name": "__index",- "kind": 8192,- "kindString": "Index signature",- "flags": {- "isExported": true- },- "parameters": [- {- "id": 68,- "name": "key",- "kind": 32768,- "kindString": "Parameter",- "flags": {- "isExported": true- },- "type": {- "type": "intrinsic",- "name": "string"- }- }- ],- "type": {- "type": "intrinsic",- "name": "any"- }+ "id": 407,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"}- ],- "sources": [- {- "fileName": "lib/types.ts",- "line": 43,- "character": 16- }- ]+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "any"}}}+ }+ },+ {+ "id": 412,+ "name": "aud",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 46,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 413,+ "name": "confirmation_sent_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 47,+ "character": 2+ }],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 420,+ "name": "confirmed_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 72,- 60,- 69,- 70,- 76,- 75,- 73,- 77,- 59,- 79,- 74,- 78,- 71,- 80,- 81,- 65- ]+ "fileName": "src/lib/types.ts",+ "line": 54,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 419,+ "name": "created_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "lib/types.ts",- "line": 37,- "character": 21+ "fileName": "src/lib/types.ts",+ "line": 53,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 82,- "name": "UserAttributes",- "kind": 256,- "kindString": "Interface",+ "id": 417,+ "name": "email",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 86,- "name": "data",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "A custom data object. Can be any JSON."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 78,- "character": 6- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "object"- }- ]- }- },- {- "id": 83,- "name": "email",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "The user's email."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 65,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 85,- "name": "email_change_token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "An email change token."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 73,- "character": 20- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },+ "fileName": "src/lib/types.ts",+ "line": 51,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 421,+ "name": "email_confirmed_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 84,- "name": "password",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "comment": {- "shortText": "The user's password."- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 69,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }+ "fileName": "src/lib/types.ts",+ "line": 55,+ "character": 2}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 402,+ "name": "id",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 86,- 83,- 85,- 84- ]+ "fileName": "src/lib/types.ts",+ "line": 38,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 415,+ "name": "invited_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "lib/types.ts",- "line": 61,- "character": 31+ "fileName": "src/lib/types.ts",+ "line": 49,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 103,- "name": "UserCredentials",- "kind": 256,- "kindString": "Interface",+ "id": 423,+ "name": "last_sign_in_at",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "sources": [{- "id": 104,- "name": "email",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 109,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 106,- "name": "password",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 111,- "character": 10- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]- }- },- {- "id": 105,- "name": "phone",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 110,- "character": 7- }- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },+ "fileName": "src/lib/types.ts",+ "line": 57,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 418,+ "name": "phone",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 52,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 422,+ "name": "phone_confirmed_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 56,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 414,+ "name": "recovery_sent_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 48,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 424,+ "name": "role",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 58,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 425,+ "name": "updated_at",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 59,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 408,+ "name": "user_metadata",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 43,+ "character": 2+ }+ ],+ "type": {+ "type": "reflection",+ "declaration": {+ "id": 409,+ "name": "__type",+ "kind": 65536,+ "kindString": "Type literal",+ "flags": {},+ "indexSignature": {+ "id": 410,+ "name": "__index",+ "kind": 8192,+ "kindString": "Index signature",+ "flags": {},+ "parameters": [{- "type": "intrinsic",- "name": "string"+ "id": 411,+ "name": "key",+ "kind": 32768,+ "flags": {},+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}- ]- }- },- {- "id": 108,- "name": "provider",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true,- "isOptional": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 114,- "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": 112,- "character": 14+ ],+ "type": {+ "type": "intrinsic",+ "name": "any"}- ],- "type": {- "type": "union",- "types": [- {- "type": "intrinsic",- "name": "undefined"- },- {- "type": "intrinsic",- "name": "string"- }- ]}}+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 416,+ 403,+ 412,+ 413,+ 420,+ 419,+ 417,+ 421,+ 402,+ 415,+ 423,+ 418,+ 422,+ 414,+ 424,+ 425,+ 408+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 37,+ "character": 17+ }+ ]+ },+ {+ "id": 426,+ "name": "UserAttributes",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 430,+ "name": "data",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "A custom data object. Can be any JSON."+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 79,+ "character": 2+ }],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "object"+ }+ },+ {+ "id": 427,+ "name": "email",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "The user's email."+ },+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 104,- 106,- 105,- 108,- 107- ]+ "fileName": "src/lib/types.ts",+ "line": 66,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 429,+ "name": "email_change_token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "comment": {+ "shortText": "An email change token."+ },"sources": [{- "fileName": "lib/types.ts",- "line": 108,- "character": 32+ "fileName": "src/lib/types.ts",+ "line": 74,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 109,- "name": "VerifyOTPParams",- "kind": 256,- "kindString": "Interface",+ "id": 428,+ "name": "password",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},- "children": [+ "comment": {+ "shortText": "The user's password."+ },+ "sources": [{- "id": 110,- "name": "phone",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 118,- "character": 7- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }- },+ "fileName": "src/lib/types.ts",+ "line": 70,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ }+ ],+ "groups": [+ {+ "title": "Properties",+ "kind": 1024,+ "children": [+ 430,+ 427,+ 429,+ 428+ ]+ }+ ],+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 62,+ "character": 17+ }+ ]+ },+ {+ "id": 445,+ "name": "UserCredentials",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},+ "children": [+ {+ "id": 446,+ "name": "email",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "id": 111,- "name": "token",- "kind": 1024,- "kindString": "Property",- "flags": {- "isExported": true- },- "sources": [- {- "fileName": "lib/types.ts",- "line": 119,- "character": 7- }- ],- "type": {- "type": "intrinsic",- "name": "string"- }+ "fileName": "src/lib/types.ts",+ "line": 110,+ "character": 2}],- "groups": [+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 448,+ "name": "password",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },+ "sources": [{- "title": "Properties",- "kind": 1024,- "children": [- 110,- 111- ]+ "fileName": "src/lib/types.ts",+ "line": 112,+ "character": 2}],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 447,+ "name": "phone",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isOptional": true+ },"sources": [{- "fileName": "lib/types.ts",- "line": 117,- "character": 32+ "fileName": "src/lib/types.ts",+ "line": 111,+ "character": 2}- ]+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }},{- "id": 113,- "name": "AuthChangeEvent",- "kind": 4194304,- "kindString": "Type alias",+ "id": 450,+ "name": "provider",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},"sources": [{- "fileName": "lib/types.ts",- "line": 15,- "character": 27+ "fileName": "src/lib/types.ts",+ "line": 115,+ "character": 2}],"type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "SIGNED_IN"- },- {- "type": "stringLiteral",- "value": "SIGNED_OUT"- },- {- "type": "stringLiteral",- "value": "USER_UPDATED"- },- {- "type": "stringLiteral",- "value": "USER_DELETED"- },- {- "type": "stringLiteral",- "value": "PASSWORD_RECOVERY"- }- ]+ "type": "reference",+ "id": 391,+ "name": "Provider"}},{- "id": 112,- "name": "Provider",- "kind": 4194304,- "kindString": "Type alias",+ "id": 449,+ "name": "refreshToken",+ "kind": 1024,+ "kindString": "Property","flags": {- "isExported": true+ "isOptional": true},"sources": [{- "fileName": "lib/types.ts",- "line": 1,- "character": 20+ "fileName": "src/lib/types.ts",+ "line": 113,+ "character": 2}],"type": {- "type": "union",- "types": [- {- "type": "stringLiteral",- "value": "azure"- },- {- "type": "stringLiteral",- "value": "bitbucket"- },- {- "type": "stringLiteral",- "value": "facebook"- },- {- "type": "stringLiteral",- "value": "github"- },- {- "type": "stringLiteral",- "value": "gitlab"- },- {- "type": "stringLiteral",- "value": "google"- },- {- "type": "stringLiteral",- "value": "twitter"- },- {- "type": "stringLiteral",- "value": "apple"- },- {- "type": "stringLiteral",- "value": "discord"- },- {- "type": "stringLiteral",- "value": "twitch"- },- {- "type": "stringLiteral",- "value": "spotify"- },- {- "type": "stringLiteral",- "value": "slack"- }- ]+ "type": "intrinsic",+ "name": "string"}}],"groups": [{- "title": "Interfaces",- "kind": 256,- "children": [- 97,- 50,- 87,- 58,- 82,- 103,- 109- ]- },- {- "title": "Type aliases",- "kind": 4194304,+ "title": "Properties",+ "kind": 1024,"children": [- 113,- 112+ 446,+ 448,+ 447,+ 450,+ 449]}],"sources": [{- "fileName": "lib/types.ts",- "line": 1,- "character": 0+ "fileName": "src/lib/types.ts",+ "line": 109,+ "character": 17}]},{- "id": 114,- "name": "\"lib/version\"",- "kind": 1,- "kindString": "Module",- "flags": {- "isExported": true- },- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/version.ts",+ "id": 451,+ "name": "VerifyOTPParams",+ "kind": 256,+ "kindString": "Interface",+ "flags": {},"children": [{- "id": 115,- "name": "version",- "kind": 32,- "kindString": "Variable",- "flags": {- "isExported": true,- "isConst": true- },+ "id": 452,+ "name": "phone",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},"sources": [{- "fileName": "lib/version.ts",- "line": 2,- "character": 20+ "fileName": "src/lib/types.ts",+ "line": 119,+ "character": 2}],"type": {- "type": "stringLiteral",- "value": "0.0.0"- },- "defaultValue": "\"0.0.0\""+ "type": "intrinsic",+ "name": "string"+ }+ },+ {+ "id": 453,+ "name": "token",+ "kind": 1024,+ "kindString": "Property",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 120,+ "character": 2+ }+ ],+ "type": {+ "type": "intrinsic",+ "name": "string"+ }}],"groups": [{- "title": "Variables",- "kind": 32,+ "title": "Properties",+ "kind": 1024,"children": [- 115+ 452,+ 453]}],"sources": [{- "fileName": "lib/version.ts",- "line": 1,- "character": 0+ "fileName": "src/lib/types.ts",+ "line": 118,+ "character": 17}]+ },+ {+ "id": 392,+ "name": "AuthChangeEvent",+ "kind": 4194304,+ "kindString": "Type alias",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 15,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "SIGNED_IN"+ },+ {+ "type": "literal",+ "value": "SIGNED_OUT"+ },+ {+ "type": "literal",+ "value": "USER_UPDATED"+ },+ {+ "type": "literal",+ "value": "USER_DELETED"+ },+ {+ "type": "literal",+ "value": "PASSWORD_RECOVERY"+ }+ ]+ }+ },+ {+ "id": 391,+ "name": "Provider",+ "kind": 4194304,+ "kindString": "Type alias",+ "flags": {},+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 1,+ "character": 12+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "literal",+ "value": "azure"+ },+ {+ "type": "literal",+ "value": "bitbucket"+ },+ {+ "type": "literal",+ "value": "facebook"+ },+ {+ "type": "literal",+ "value": "github"+ },+ {+ "type": "literal",+ "value": "gitlab"+ },+ {+ "type": "literal",+ "value": "google"+ },+ {+ "type": "literal",+ "value": "twitter"+ },+ {+ "type": "literal",+ "value": "apple"+ },+ {+ "type": "literal",+ "value": "discord"+ },+ {+ "type": "literal",+ "value": "twitch"+ },+ {+ "type": "literal",+ "value": "spotify"+ },+ {+ "type": "literal",+ "value": "slack"+ }+ ]+ }}],"groups": [{- "title": "Modules",- "kind": 1,+ "title": "Classes",+ "kind": 128,"children": [- 185,- 362,- 579,- 116,- 129,1,- 173,- 359,- 49,- 114+ 199+ ]+ },+ {+ "title": "Interfaces",+ "kind": 256,+ "children": [+ 439,+ 393,+ 431,+ 401,+ 426,+ 445,+ 451+ ]+ },+ {+ "title": "Type aliases",+ "kind": 4194304,+ "children": [+ 392,+ 391]}+ ],+ "sources": [+ {+ "fileName": "src/index.ts",+ "line": 1,+ "character": 0+ }]}\ No newline at end of filediff --git a/web/spec/supabase.json b/web/spec/supabase.jsonindex 606e3579424..7c2df984315 100644--- a/web/spec/supabase.json+++ b/web/spec/supabase.json@@ -6,7 +6,7 @@"originalName": "","children": [{- "id": 293,+ "id": 297,"name": "\"SupabaseClient\"","kind": 1,"kindString": "Module",@@ -16,7 +16,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts","children": [{- "id": 294,+ "id": 298,"name": "SupabaseClient","kind": 128,"kindString": "Class",@@ -29,7 +29,7 @@},"children": [{- "id": 302,+ "id": 307,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -41,7 +41,7 @@},"signatures": [{- "id": 305,+ "id": 310,"name": "new SupabaseClient","kind": 16384,"kindString": "Constructor signature",@@ -53,7 +53,7 @@},"parameters": [{- "id": 306,+ "id": 311,"name": "supabaseUrl","kind": 32768,"kindString": "Parameter",@@ -69,7 +69,7 @@}},{- "id": 307,+ "id": 312,"name": "supabaseKey","kind": 32768,"kindString": "Parameter",@@ -85,7 +85,7 @@}},{- "id": 308,+ "id": 313,"name": "options","kind": 32768,"kindString": "Parameter",@@ -95,14 +95,14 @@},"type": {"type": "reference",- "id": 38,+ "id": 39,"name": "SupabaseClientOptions"}}],"type": {"type": "reference",- "id": 294,+ "id": 298,"name": "SupabaseClient"}}@@ -110,13 +110,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 34,- "character": 36+ "line": 35,+ "character": 25}]},{- "id": 295,+ "id": 299,"name": "auth","kind": 1024,"kindString": "Property",@@ -135,12 +135,12 @@],"type": {"type": "reference",- "id": 61,+ "id": 63,"name": "SupabaseAuthClient"}},{- "id": 299,+ "id": 303,"name": "authUrl","kind": 1024,"kindString": "Property",@@ -161,7 +161,30 @@}},{- "id": 301,+ "id": 306,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isExported": true,+ "isOptional": true+ },+ "sources": [+ {+ "fileName": "src/SupabaseClient.ts",+ "line": 35,+ "character": 17+ }+ ],+ "type": {+ "type": "reference",+ "id": 37,+ "name": "Fetch"+ }+ },+ {+ "id": 305,"name": "realtime","kind": 1024,"kindString": "Property",@@ -182,7 +205,7 @@}},{- "id": 298,+ "id": 302,"name": "realtimeUrl","kind": 1024,"kindString": "Property",@@ -203,7 +226,7 @@}},{- "id": 297,+ "id": 301,"name": "restUrl","kind": 1024,"kindString": "Property",@@ -224,7 +247,7 @@}},{- "id": 296,+ "id": 300,"name": "schema","kind": 1024,"kindString": "Property",@@ -245,7 +268,7 @@}},{- "id": 300,+ "id": 304,"name": "storageUrl","kind": 1024,"kindString": "Property",@@ -266,7 +289,7 @@}},{- "id": 304,+ "id": 309,"name": "supabaseKey","kind": 1024,"kindString": "Property",@@ -281,7 +304,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 49,+ "line": 51,"character": 25}],@@ -291,7 +314,7 @@}},{- "id": 303,+ "id": 308,"name": "supabaseUrl","kind": 1024,"kindString": "Property",@@ -306,7 +329,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 48,+ "line": 50,"character": 25}],@@ -316,7 +339,7 @@}},{- "id": 309,+ "id": 314,"name": "storage","kind": 262144,"kindString": "Accessor",@@ -328,7 +351,7 @@},"getSignature": [{- "id": 310,+ "id": 315,"name": "__get","kind": 524288,"kindString": "Get signature",@@ -347,13 +370,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 76,+ "line": 80,"character": 13}]},{- "id": 354,+ "id": 359,"name": "_closeChannel","kind": 2048,"kindString": "Method",@@ -363,7 +386,7 @@},"signatures": [{- "id": 355,+ "id": 360,"name": "_closeChannel","kind": 4096,"kindString": "Call signature",@@ -372,7 +395,7 @@},"parameters": [{- "id": 356,+ "id": 361,"name": "subscription","kind": 32768,"kindString": "Parameter",@@ -400,13 +423,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 194,+ "line": 201,"character": 23}]},{- "id": 327,+ "id": 332,"name": "_closeSubscription","kind": 2048,"kindString": "Method",@@ -416,7 +439,7 @@},"signatures": [{- "id": 328,+ "id": 333,"name": "_closeSubscription","kind": 4096,"kindString": "Call signature",@@ -425,7 +448,7 @@},"parameters": [{- "id": 329,+ "id": 334,"name": "subscription","kind": 32768,"kindString": "Parameter",@@ -453,13 +476,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 138,+ "line": 143,"character": 34}]},{- "id": 349,+ "id": 354,"name": "_getAuthHeaders","kind": 2048,"kindString": "Method",@@ -469,7 +492,7 @@},"signatures": [{- "id": 350,+ "id": 355,"name": "_getAuthHeaders","kind": 4096,"kindString": "Call signature",@@ -479,7 +502,7 @@"type": {"type": "reflection","declaration": {- "id": 351,+ "id": 356,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -488,7 +511,7 @@},"indexSignature": [{- "id": 352,+ "id": 357,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -497,7 +520,7 @@},"parameters": [{- "id": 353,+ "id": 358,"name": "key","kind": 32768,"kindString": "Parameter",@@ -519,7 +542,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 186,+ "line": 193,"character": 28}]@@ -530,13 +553,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 186,+ "line": 193,"character": 25}]},{- "id": 347,+ "id": 352,"name": "_initPostgRESTClient","kind": 2048,"kindString": "Method",@@ -546,7 +569,7 @@},"signatures": [{- "id": 348,+ "id": 353,"name": "_initPostgRESTClient","kind": 4096,"kindString": "Call signature",@@ -562,13 +585,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 179,+ "line": 185,"character": 30}]},{- "id": 344,+ "id": 349,"name": "_initRealtimeClient","kind": 2048,"kindString": "Method",@@ -578,7 +601,7 @@},"signatures": [{- "id": 345,+ "id": 350,"name": "_initRealtimeClient","kind": 4096,"kindString": "Call signature",@@ -587,7 +610,7 @@},"parameters": [{- "id": 346,+ "id": 351,"name": "options","kind": 32768,"kindString": "Parameter",@@ -610,13 +633,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 172,+ "line": 178,"character": 29}]},{- "id": 332,+ "id": 337,"name": "_initSupabaseAuthClient","kind": 2048,"kindString": "Method",@@ -626,7 +649,7 @@},"signatures": [{- "id": 333,+ "id": 338,"name": "_initSupabaseAuthClient","kind": 4096,"kindString": "Call signature",@@ -635,7 +658,7 @@},"parameters": [{- "id": 334,+ "id": 339,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -646,7 +669,7 @@"type": {"type": "reflection","declaration": {- "id": 335,+ "id": 340,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -655,7 +678,7 @@},"children": [{- "id": 336,+ "id": 341,"name": "autoRefreshToken","kind": 32,"kindString": "Variable",@@ -665,7 +688,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 152,+ "line": 157,"character": 20}],@@ -688,7 +711,7 @@}},{- "id": 338,+ "id": 343,"name": "detectSessionInUrl","kind": 32,"kindString": "Variable",@@ -698,7 +721,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 154,+ "line": 159,"character": 22}],@@ -721,7 +744,7 @@}},{- "id": 340,+ "id": 345,"name": "headers","kind": 32,"kindString": "Variable",@@ -731,7 +754,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 156,+ "line": 161,"character": 11}],@@ -745,7 +768,7 @@{"type": "reflection","declaration": {- "id": 341,+ "id": 346,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -754,7 +777,7 @@},"indexSignature": [{- "id": 342,+ "id": 347,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -763,7 +786,7 @@},"parameters": [{- "id": 343,+ "id": 348,"name": "key","kind": 32768,"kindString": "Parameter",@@ -788,7 +811,7 @@}},{- "id": 339,+ "id": 344,"name": "localStorage","kind": 32,"kindString": "Variable",@@ -798,7 +821,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 155,+ "line": 160,"character": 16}],@@ -846,7 +869,7 @@}},{- "id": 337,+ "id": 342,"name": "persistSession","kind": 32,"kindString": "Variable",@@ -856,7 +879,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 153,+ "line": 158,"character": 18}],@@ -884,18 +907,18 @@"title": "Variables","kind": 32,"children": [- 336,- 338,- 340,- 339,- 337+ 341,+ 343,+ 345,+ 344,+ 342]}],"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 151,+ "line": 156,"character": 34}]@@ -905,7 +928,7 @@],"type": {"type": "reference",- "id": 61,+ "id": 63,"name": "SupabaseAuthClient"}}@@ -913,13 +936,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 151,+ "line": 156,"character": 33}]},{- "id": 311,+ "id": 316,"name": "from","kind": 2048,"kindString": "Method",@@ -928,7 +951,7 @@},"signatures": [{- "id": 312,+ "id": 317,"name": "from","kind": 4096,"kindString": "Call signature",@@ -940,7 +963,7 @@},"typeParameter": [{- "id": 313,+ "id": 318,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -951,7 +974,7 @@],"parameters": [{- "id": 314,+ "id": 319,"name": "table","kind": 32768,"kindString": "Parameter",@@ -969,7 +992,7 @@],"type": {"type": "reference",- "id": 202,+ "id": 204,"typeArguments": [{"type": "typeParameter",@@ -987,13 +1010,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 85,+ "line": 89,"character": 6}]},{- "id": 330,+ "id": 335,"name": "getSubscriptions","kind": 2048,"kindString": "Method",@@ -1002,7 +1025,7 @@},"signatures": [{- "id": 331,+ "id": 336,"name": "getSubscriptions","kind": 4096,"kindString": "Call signature",@@ -1024,13 +1047,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 147,+ "line": 152,"character": 18}]},{- "id": 324,+ "id": 329,"name": "removeSubscription","kind": 2048,"kindString": "Method",@@ -1039,7 +1062,7 @@},"signatures": [{- "id": 325,+ "id": 330,"name": "removeSubscription","kind": 4096,"kindString": "Call signature",@@ -1051,7 +1074,7 @@},"parameters": [{- "id": 326,+ "id": 331,"name": "subscription","kind": 32768,"kindString": "Parameter",@@ -1082,13 +1105,13 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 121,+ "line": 126,"character": 20}]},{- "id": 315,+ "id": 320,"name": "rpc","kind": 2048,"kindString": "Method",@@ -1097,7 +1120,7 @@},"signatures": [{- "id": 316,+ "id": 321,"name": "rpc","kind": 4096,"kindString": "Call signature",@@ -1109,7 +1132,7 @@},"typeParameter": [{- "id": 317,+ "id": 322,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -1120,7 +1143,7 @@],"parameters": [{- "id": 318,+ "id": 323,"name": "fn","kind": 32768,"kindString": "Parameter",@@ -1136,7 +1159,7 @@}},{- "id": 319,+ "id": 324,"name": "params","kind": 32768,"kindString": "Parameter",@@ -1162,7 +1185,7 @@}},{- "id": 320,+ "id": 325,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -1173,7 +1196,7 @@"type": {"type": "reflection","declaration": {- "id": 321,+ "id": 326,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -1182,7 +1205,7 @@},"children": [{- "id": 323,+ "id": 328,"name": "count","kind": 32,"kindString": "Variable",@@ -1195,7 +1218,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 109,+ "line": 114,"character": 11}],@@ -1223,7 +1246,7 @@"defaultValue": "null"},{- "id": 322,+ "id": 327,"name": "head","kind": 32,"kindString": "Variable",@@ -1236,7 +1259,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 108,+ "line": 113,"character": 10}],@@ -1252,15 +1275,15 @@"title": "Variables","kind": 32,"children": [- 323,- 322+ 328,+ 327]}],"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 106,+ "line": 111,"character": 20}]@@ -1284,7 +1307,7 @@"sources": [{"fileName": "src/SupabaseClient.ts",- "line": 104,+ "line": 109,"character": 5}]@@ -1295,45 +1318,46 @@"title": "Constructors","kind": 512,"children": [- 302+ 307]},{"title": "Properties","kind": 1024,"children": [- 295,299,+ 303,+ 306,+ 305,+ 302,301,- 298,- 297,- 296,300,304,- 303+ 309,+ 308]},{"title": "Accessors","kind": 262144,"children": [- 309+ 314]},{"title": "Methods","kind": 2048,"children": [+ 359,+ 332,354,- 327,+ 352,349,- 347,- 344,- 332,- 311,- 330,- 324,- 315+ 337,+ 316,+ 335,+ 329,+ 320]}],@@ -1346,7 +1370,7 @@]},{- "id": 357,+ "id": 362,"name": "DEFAULT_OPTIONS","kind": 2097152,"kindString": "Object literal",@@ -1355,7 +1379,7 @@},"children": [{- "id": 359,+ "id": 364,"name": "autoRefreshToken","kind": 32,"kindString": "Variable",@@ -1374,7 +1398,7 @@"defaultValue": "true"},{- "id": 361,+ "id": 366,"name": "detectSessionInUrl","kind": 32,"kindString": "Variable",@@ -1393,7 +1417,7 @@"defaultValue": "true"},{- "id": 362,+ "id": 367,"name": "headers","kind": 32,"kindString": "Variable",@@ -1408,14 +1432,14 @@"type": {"type": "reflection","declaration": {- "id": 363,+ "id": 368,"name": "__type","kind": 65536,"kindString": "Type literal","flags": {},"children": [{- "id": 364,+ "id": 369,"name": "X-Client-Info","kind": 32,"kindString": "Variable",@@ -1439,7 +1463,7 @@"title": "Variables","kind": 32,"children": [- 364+ 369]}]@@ -1448,7 +1472,7 @@"defaultValue": "DEFAULT_HEADERS"},{- "id": 360,+ "id": 365,"name": "persistSession","kind": 32,"kindString": "Variable",@@ -1467,7 +1491,7 @@"defaultValue": "true"},{- "id": 358,+ "id": 363,"name": "schema","kind": 32,"kindString": "Variable",@@ -1491,11 +1515,11 @@"title": "Variables","kind": 32,"children": [- 359,- 361,- 362,- 360,- 358+ 364,+ 366,+ 367,+ 365,+ 363]}],@@ -1517,14 +1541,14 @@"title": "Classes","kind": 128,"children": [- 294+ 298]},{"title": "Object literals","kind": 2097152,"children": [- 357+ 362]}],@@ -1537,7 +1561,7 @@]},{- "id": 365,+ "id": 370,"name": "\"index\"","kind": 1,"kindString": "Module",@@ -1547,7 +1571,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts","children": [{- "id": 366,+ "id": 371,"name": "createClient","kind": 64,"kindString": "Function",@@ -1560,7 +1584,7 @@},"signatures": [{- "id": 367,+ "id": 372,"name": "createClient","kind": 4096,"kindString": "Call signature",@@ -1572,7 +1596,7 @@},"parameters": [{- "id": 368,+ "id": 373,"name": "supabaseUrl","kind": 32768,"kindString": "Parameter",@@ -1585,7 +1609,7 @@}},{- "id": 369,+ "id": 374,"name": "supabaseKey","kind": 32768,"kindString": "Parameter",@@ -1598,7 +1622,7 @@}},{- "id": 370,+ "id": 375,"name": "options","kind": 32768,"kindString": "Parameter",@@ -1608,14 +1632,14 @@},"type": {"type": "reference",- "id": 38,+ "id": 39,"name": "SupabaseClientOptions"}}],"type": {"type": "reference",- "id": 294,+ "id": 298,"name": "SupabaseClient"}}@@ -1634,7 +1658,7 @@"title": "Functions","kind": 64,"children": [- 366+ 371]}],@@ -1647,7 +1671,7 @@]},{- "id": 60,+ "id": 62,"name": "\"lib/SupabaseAuthClient\"","kind": 1,"kindString": "Module",@@ -1657,7 +1681,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseAuthClient.ts","children": [{- "id": 61,+ "id": 63,"name": "SupabaseAuthClient","kind": 128,"kindString": "Class",@@ -1666,7 +1690,7 @@},"children": [{- "id": 62,+ "id": 64,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -1675,7 +1699,7 @@},"signatures": [{- "id": 63,+ "id": 65,"name": "new SupabaseAuthClient","kind": 16384,"kindString": "Constructor signature",@@ -1684,7 +1708,7 @@},"parameters": [{- "id": 64,+ "id": 66,"name": "options","kind": 32768,"kindString": "Parameter",@@ -1700,7 +1724,7 @@],"type": {"type": "reference",- "id": 61,+ "id": 63,"name": "SupabaseAuthClient"},"overwrites": {@@ -1722,7 +1746,7 @@}},{- "id": 65,+ "id": 67,"name": "api","kind": 1024,"kindString": "Property",@@ -1745,12 +1769,12 @@},"inheritedFrom": {"type": "reference",- "id": 65,+ "id": 67,"name": "GoTrueClient.api"}},{- "id": 68,+ "id": 70,"name": "autoRefreshToken","kind": 1024,"kindString": "Property",@@ -1771,12 +1795,12 @@},"inheritedFrom": {"type": "reference",- "id": 68,+ "id": 70,"name": "GoTrueClient.autoRefreshToken"}},{- "id": 67,+ "id": 69,"name": "currentSession","kind": 1024,"kindString": "Property",@@ -1809,12 +1833,12 @@},"inheritedFrom": {"type": "reference",- "id": 67,+ "id": 69,"name": "GoTrueClient.currentSession"}},{- "id": 66,+ "id": 68,"name": "currentUser","kind": 1024,"kindString": "Property",@@ -1847,12 +1871,12 @@},"inheritedFrom": {"type": "reference",- "id": 66,+ "id": 68,"name": "GoTrueClient.currentUser"}},{- "id": 70,+ "id": 72,"name": "localStorage","kind": 1024,"kindString": "Property",@@ -1873,12 +1897,12 @@},"inheritedFrom": {"type": "reference",- "id": 70,+ "id": 72,"name": "GoTrueClient.localStorage"}},{- "id": 69,+ "id": 71,"name": "persistSession","kind": 1024,"kindString": "Property",@@ -1899,12 +1923,12 @@},"inheritedFrom": {"type": "reference",- "id": 69,+ "id": 71,"name": "GoTrueClient.persistSession"}},{- "id": 72,+ "id": 74,"name": "refreshTokenTimer","kind": 1024,"kindString": "Property",@@ -1935,12 +1959,12 @@},"inheritedFrom": {"type": "reference",- "id": 72,+ "id": 74,"name": "GoTrueClient.refreshTokenTimer"}},{- "id": 71,+ "id": 73,"name": "stateChangeEmitters","kind": 1024,"kindString": "Property",@@ -1971,12 +1995,12 @@},"inheritedFrom": {"type": "reference",- "id": 71,+ "id": 73,"name": "GoTrueClient.stateChangeEmitters"}},{- "id": 149,+ "id": 151,"name": "getSessionFromUrl","kind": 2048,"kindString": "Method",@@ -1985,7 +2009,7 @@},"signatures": [{- "id": 150,+ "id": 152,"name": "getSessionFromUrl","kind": 4096,"kindString": "Call signature",@@ -1997,7 +2021,7 @@},"parameters": [{- "id": 151,+ "id": 153,"name": "options","kind": 32768,"kindString": "Parameter",@@ -2015,7 +2039,7 @@{"type": "reflection","declaration": {- "id": 152,+ "id": 154,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2024,7 +2048,7 @@},"children": [{- "id": 153,+ "id": 155,"name": "storeSession","kind": 32,"kindString": "Variable",@@ -2066,7 +2090,7 @@"title": "Variables","kind": 32,"children": [- 153+ 155]}]@@ -2082,7 +2106,7 @@{"type": "reflection","declaration": {- "id": 154,+ "id": 156,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2091,7 +2115,7 @@},"children": [{- "id": 155,+ "id": 157,"name": "data","kind": 32,"kindString": "Variable",@@ -2120,7 +2144,7 @@}},{- "id": 156,+ "id": 158,"name": "error","kind": 32,"kindString": "Variable",@@ -2154,8 +2178,8 @@"title": "Variables","kind": 32,"children": [- 155,- 156+ 157,+ 158]}],@@ -2173,7 +2197,7 @@},"inheritedFrom": {"type": "reference",- "id": 149,+ "id": 151,"name": "GoTrueClient.getSessionFromUrl"}}@@ -2187,12 +2211,12 @@],"inheritedFrom": {"type": "reference",- "id": 149,+ "id": 151,"name": "GoTrueClient.getSessionFromUrl"}},{- "id": 161,+ "id": 163,"name": "onAuthStateChange","kind": 2048,"kindString": "Method",@@ -2201,7 +2225,7 @@},"signatures": [{- "id": 162,+ "id": 164,"name": "onAuthStateChange","kind": 4096,"kindString": "Call signature",@@ -2214,7 +2238,7 @@},"parameters": [{- "id": 163,+ "id": 165,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -2224,7 +2248,7 @@"type": {"type": "reflection","declaration": {- "id": 164,+ "id": 166,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2233,7 +2257,7 @@},"signatures": [{- "id": 165,+ "id": 167,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -2242,7 +2266,7 @@},"parameters": [{- "id": 166,+ "id": 168,"name": "event","kind": 32768,"kindString": "Parameter",@@ -2255,7 +2279,7 @@}},{- "id": 167,+ "id": 169,"name": "session","kind": 32768,"kindString": "Parameter",@@ -2297,7 +2321,7 @@"type": {"type": "reflection","declaration": {- "id": 168,+ "id": 170,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2306,7 +2330,7 @@},"children": [{- "id": 169,+ "id": 171,"name": "data","kind": 32,"kindString": "Variable",@@ -2335,7 +2359,7 @@}},{- "id": 170,+ "id": 172,"name": "error","kind": 32,"kindString": "Variable",@@ -2369,8 +2393,8 @@"title": "Variables","kind": 32,"children": [- 169,- 170+ 171,+ 172]}],@@ -2385,7 +2409,7 @@},"inheritedFrom": {"type": "reference",- "id": 161,+ "id": 163,"name": "GoTrueClient.onAuthStateChange"}}@@ -2399,12 +2423,12 @@],"inheritedFrom": {"type": "reference",- "id": 161,+ "id": 163,"name": "GoTrueClient.onAuthStateChange"}},{- "id": 127,+ "id": 129,"name": "refreshSession","kind": 2048,"kindString": "Method",@@ -2413,7 +2437,7 @@},"signatures": [{- "id": 128,+ "id": 130,"name": "refreshSession","kind": 4096,"kindString": "Call signature",@@ -2429,7 +2453,7 @@{"type": "reflection","declaration": {- "id": 129,+ "id": 131,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2438,7 +2462,7 @@},"children": [{- "id": 130,+ "id": 132,"name": "data","kind": 32,"kindString": "Variable",@@ -2467,7 +2491,7 @@}},{- "id": 132,+ "id": 134,"name": "error","kind": 32,"kindString": "Variable",@@ -2496,7 +2520,7 @@}},{- "id": 131,+ "id": 133,"name": "user","kind": 32,"kindString": "Variable",@@ -2530,9 +2554,9 @@"title": "Variables","kind": 32,"children": [- 130,132,- 131+ 134,+ 133]}],@@ -2550,7 +2574,7 @@},"inheritedFrom": {"type": "reference",- "id": 127,+ "id": 129,"name": "GoTrueClient.refreshSession"}}@@ -2564,12 +2588,12 @@],"inheritedFrom": {"type": "reference",- "id": 127,+ "id": 129,"name": "GoTrueClient.refreshSession"}},{- "id": 125,+ "id": 127,"name": "session","kind": 2048,"kindString": "Method",@@ -2578,7 +2602,7 @@},"signatures": [{- "id": 126,+ "id": 128,"name": "session","kind": 4096,"kindString": "Call signature",@@ -2603,7 +2627,7 @@},"inheritedFrom": {"type": "reference",- "id": 125,+ "id": 127,"name": "GoTrueClient.session"}}@@ -2617,12 +2641,12 @@],"inheritedFrom": {"type": "reference",- "id": 125,+ "id": 127,"name": "GoTrueClient.session"}},{- "id": 146,+ "id": 148,"name": "setAuth","kind": 2048,"kindString": "Method",@@ -2631,7 +2655,7 @@},"signatures": [{- "id": 147,+ "id": 149,"name": "setAuth","kind": 4096,"kindString": "Call signature",@@ -2643,7 +2667,7 @@},"parameters": [{- "id": 148,+ "id": 150,"name": "access_token","kind": 32768,"kindString": "Parameter",@@ -2665,7 +2689,7 @@},"inheritedFrom": {"type": "reference",- "id": 146,+ "id": 148,"name": "GoTrueClient.setAuth"}}@@ -2679,12 +2703,12 @@],"inheritedFrom": {"type": "reference",- "id": 146,+ "id": 148,"name": "GoTrueClient.setAuth"}},{- "id": 140,+ "id": 142,"name": "setSession","kind": 2048,"kindString": "Method",@@ -2693,7 +2717,7 @@},"signatures": [{- "id": 141,+ "id": 143,"name": "setSession","kind": 4096,"kindString": "Call signature",@@ -2705,7 +2729,7 @@},"parameters": [{- "id": 142,+ "id": 144,"name": "refresh_token","kind": 32768,"kindString": "Parameter",@@ -2727,7 +2751,7 @@{"type": "reflection","declaration": {- "id": 143,+ "id": 145,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2736,7 +2760,7 @@},"children": [{- "id": 145,+ "id": 147,"name": "error","kind": 32,"kindString": "Variable",@@ -2765,7 +2789,7 @@}},{- "id": 144,+ "id": 146,"name": "session","kind": 32,"kindString": "Variable",@@ -2799,8 +2823,8 @@"title": "Variables","kind": 32,"children": [- 145,- 144+ 147,+ 146]}],@@ -2818,7 +2842,7 @@},"inheritedFrom": {"type": "reference",- "id": 140,+ "id": 142,"name": "GoTrueClient.setSession"}}@@ -2832,12 +2856,12 @@],"inheritedFrom": {"type": "reference",- "id": 140,+ "id": 142,"name": "GoTrueClient.setSession"}},{- "id": 89,+ "id": 91,"name": "signIn","kind": 2048,"kindString": "Method",@@ -2846,7 +2870,7 @@},"signatures": [{- "id": 90,+ "id": 92,"name": "signIn","kind": 4096,"kindString": "Call signature",@@ -2858,7 +2882,7 @@},"parameters": [{- "id": 91,+ "id": 93,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -2869,7 +2893,7 @@"type": {"type": "reflection","declaration": {- "id": 92,+ "id": 94,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -2878,7 +2902,7 @@},"children": [{- "id": 93,+ "id": 95,"name": "email","kind": 32,"kindString": "Variable",@@ -2910,7 +2934,7 @@}},{- "id": 95,+ "id": 97,"name": "password","kind": 32,"kindString": "Variable",@@ -2942,7 +2966,7 @@}},{- "id": 94,+ "id": 96,"name": "phone","kind": 32,"kindString": "Variable",@@ -2971,7 +2995,7 @@}},{- "id": 97,+ "id": 99,"name": "provider","kind": 32,"kindString": "Variable",@@ -3047,7 +3071,7 @@}},{- "id": 96,+ "id": 98,"name": "refreshToken","kind": 32,"kindString": "Variable",@@ -3084,11 +3108,11 @@"title": "Variables","kind": 32,"children": [- 93,95,- 94,97,- 96+ 96,+ 99,+ 98]}],@@ -3103,7 +3127,7 @@}},{- "id": 98,+ "id": 100,"name": "options","kind": 32768,"kindString": "Parameter",@@ -3121,7 +3145,7 @@{"type": "reflection","declaration": {- "id": 99,+ "id": 101,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3130,7 +3154,7 @@},"children": [{- "id": 100,+ "id": 102,"name": "redirectTo","kind": 32,"kindString": "Variable",@@ -3160,7 +3184,7 @@}},{- "id": 101,+ "id": 103,"name": "scopes","kind": 32,"kindString": "Variable",@@ -3195,8 +3219,8 @@"title": "Variables","kind": 32,"children": [- 100,- 101+ 102,+ 103]}]@@ -3212,7 +3236,7 @@{"type": "reflection","declaration": {- "id": 102,+ "id": 104,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3221,7 +3245,7 @@},"children": [{- "id": 108,+ "id": 110,"name": "data","kind": 32,"kindString": "Variable",@@ -3250,7 +3274,7 @@}},{- "id": 107,+ "id": 109,"name": "error","kind": 32,"kindString": "Variable",@@ -3279,7 +3303,7 @@}},{- "id": 105,+ "id": 107,"name": "provider","kind": 32,"kindString": "Variable",@@ -3300,7 +3324,7 @@}},{- "id": 103,+ "id": 105,"name": "session","kind": 32,"kindString": "Variable",@@ -3329,7 +3353,7 @@}},{- "id": 106,+ "id": 108,"name": "url","kind": 32,"kindString": "Variable",@@ -3359,7 +3383,7 @@}},{- "id": 104,+ "id": 106,"name": "user","kind": 32,"kindString": "Variable",@@ -3393,12 +3417,12 @@"title": "Variables","kind": 32,"children": [- 108,+ 110,+ 109,107,105,- 103,- 106,- 104+ 108,+ 106]}],@@ -3416,7 +3440,7 @@},"inheritedFrom": {"type": "reference",- "id": 89,+ "id": 91,"name": "GoTrueClient.signIn"}}@@ -3430,12 +3454,12 @@],"inheritedFrom": {"type": "reference",- "id": 89,+ "id": 91,"name": "GoTrueClient.signIn"}},{- "id": 157,+ "id": 159,"name": "signOut","kind": 2048,"kindString": "Method",@@ -3444,7 +3468,7 @@},"signatures": [{- "id": 158,+ "id": 160,"name": "signOut","kind": 4096,"kindString": "Call signature",@@ -3461,7 +3485,7 @@{"type": "reflection","declaration": {- "id": 159,+ "id": 161,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3470,7 +3494,7 @@},"children": [{- "id": 160,+ "id": 162,"name": "error","kind": 32,"kindString": "Variable",@@ -3504,7 +3528,7 @@"title": "Variables","kind": 32,"children": [- 160+ 162]}],@@ -3522,7 +3546,7 @@},"inheritedFrom": {"type": "reference",- "id": 157,+ "id": 159,"name": "GoTrueClient.signOut"}}@@ -3536,12 +3560,12 @@],"inheritedFrom": {"type": "reference",- "id": 157,+ "id": 159,"name": "GoTrueClient.signOut"}},{- "id": 73,+ "id": 75,"name": "signUp","kind": 2048,"kindString": "Method",@@ -3550,7 +3574,7 @@},"signatures": [{- "id": 74,+ "id": 76,"name": "signUp","kind": 4096,"kindString": "Call signature",@@ -3562,7 +3586,7 @@},"parameters": [{- "id": 75,+ "id": 77,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -3573,7 +3597,7 @@"type": {"type": "reflection","declaration": {- "id": 76,+ "id": 78,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3582,7 +3606,7 @@},"children": [{- "id": 77,+ "id": 79,"name": "email","kind": 32,"kindString": "Variable",@@ -3614,7 +3638,7 @@}},{- "id": 78,+ "id": 80,"name": "password","kind": 32,"kindString": "Variable",@@ -3646,7 +3670,7 @@}},{- "id": 79,+ "id": 81,"name": "phone","kind": 32,"kindString": "Variable",@@ -3683,9 +3707,9 @@"title": "Variables","kind": 32,"children": [- 77,- 78,- 79+ 79,+ 80,+ 81]}],@@ -3700,7 +3724,7 @@}},{- "id": 80,+ "id": 82,"name": "options","kind": 32768,"kindString": "Parameter",@@ -3718,7 +3742,7 @@{"type": "reflection","declaration": {- "id": 81,+ "id": 83,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3727,7 +3751,7 @@},"children": [{- "id": 83,+ "id": 85,"name": "data","kind": 32,"kindString": "Variable",@@ -3757,7 +3781,7 @@}},{- "id": 82,+ "id": 84,"name": "redirectTo","kind": 32,"kindString": "Variable",@@ -3792,8 +3816,8 @@"title": "Variables","kind": 32,"children": [- 83,- 82+ 85,+ 84]}]@@ -3809,7 +3833,7 @@{"type": "reflection","declaration": {- "id": 84,+ "id": 86,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -3818,7 +3842,7 @@},"children": [{- "id": 88,+ "id": 90,"name": "data","kind": 32,"kindString": "Variable",@@ -3854,7 +3878,7 @@}},{- "id": 87,+ "id": 89,"name": "error","kind": 32,"kindString": "Variable",@@ -3883,7 +3907,7 @@}},{- "id": 86,+ "id": 88,"name": "session","kind": 32,"kindString": "Variable",@@ -3912,7 +3936,7 @@}},{- "id": 85,+ "id": 87,"name": "user","kind": 32,"kindString": "Variable",@@ -3946,10 +3970,10 @@"title": "Variables","kind": 32,"children": [+ 90,+ 89,88,- 87,- 86,- 85+ 87]}],@@ -3967,7 +3991,7 @@},"inheritedFrom": {"type": "reference",- "id": 73,+ "id": 75,"name": "GoTrueClient.signUp"}}@@ -3981,12 +4005,12 @@],"inheritedFrom": {"type": "reference",- "id": 73,+ "id": 75,"name": "GoTrueClient.signUp"}},{- "id": 133,+ "id": 135,"name": "update","kind": 2048,"kindString": "Method",@@ -3995,7 +4019,7 @@},"signatures": [{- "id": 134,+ "id": 136,"name": "update","kind": 4096,"kindString": "Call signature",@@ -4007,7 +4031,7 @@},"parameters": [{- "id": 135,+ "id": 137,"name": "attributes","kind": 32768,"kindString": "Parameter",@@ -4026,7 +4050,7 @@{"type": "reflection","declaration": {- "id": 136,+ "id": 138,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4035,7 +4059,7 @@},"children": [{- "id": 137,+ "id": 139,"name": "data","kind": 32,"kindString": "Variable",@@ -4064,7 +4088,7 @@}},{- "id": 139,+ "id": 141,"name": "error","kind": 32,"kindString": "Variable",@@ -4093,7 +4117,7 @@}},{- "id": 138,+ "id": 140,"name": "user","kind": 32,"kindString": "Variable",@@ -4127,9 +4151,9 @@"title": "Variables","kind": 32,"children": [- 137,139,- 138+ 141,+ 140]}],@@ -4147,7 +4171,7 @@},"inheritedFrom": {"type": "reference",- "id": 133,+ "id": 135,"name": "GoTrueClient.update"}}@@ -4161,12 +4185,12 @@],"inheritedFrom": {"type": "reference",- "id": 133,+ "id": 135,"name": "GoTrueClient.update"}},{- "id": 123,+ "id": 125,"name": "user","kind": 2048,"kindString": "Method",@@ -4175,7 +4199,7 @@},"signatures": [{- "id": 124,+ "id": 126,"name": "user","kind": 4096,"kindString": "Call signature",@@ -4201,7 +4225,7 @@},"inheritedFrom": {"type": "reference",- "id": 123,+ "id": 125,"name": "GoTrueClient.user"}}@@ -4215,12 +4239,12 @@],"inheritedFrom": {"type": "reference",- "id": 123,+ "id": 125,"name": "GoTrueClient.user"}},{- "id": 109,+ "id": 111,"name": "verifyOTP","kind": 2048,"kindString": "Method",@@ -4229,7 +4253,7 @@},"signatures": [{- "id": 110,+ "id": 112,"name": "verifyOTP","kind": 4096,"kindString": "Call signature",@@ -4241,7 +4265,7 @@},"parameters": [{- "id": 111,+ "id": 113,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -4252,7 +4276,7 @@"type": {"type": "reflection","declaration": {- "id": 112,+ "id": 114,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4261,7 +4285,7 @@},"children": [{- "id": 113,+ "id": 115,"name": "phone","kind": 32,"kindString": "Variable",@@ -4284,7 +4308,7 @@}},{- "id": 114,+ "id": 116,"name": "token","kind": 32,"kindString": "Variable",@@ -4312,8 +4336,8 @@"title": "Variables","kind": 32,"children": [- 113,- 114+ 115,+ 116]}],@@ -4328,7 +4352,7 @@}},{- "id": 115,+ "id": 117,"name": "options","kind": 32768,"kindString": "Parameter",@@ -4346,7 +4370,7 @@{"type": "reflection","declaration": {- "id": 116,+ "id": 118,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4355,7 +4379,7 @@},"children": [{- "id": 117,+ "id": 119,"name": "redirectTo","kind": 32,"kindString": "Variable",@@ -4390,7 +4414,7 @@"title": "Variables","kind": 32,"children": [- 117+ 119]}]@@ -4406,7 +4430,7 @@{"type": "reflection","declaration": {- "id": 118,+ "id": 120,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4415,7 +4439,7 @@},"children": [{- "id": 122,+ "id": 124,"name": "data","kind": 32,"kindString": "Variable",@@ -4448,7 +4472,7 @@}},{- "id": 121,+ "id": 123,"name": "error","kind": 32,"kindString": "Variable",@@ -4477,7 +4501,7 @@}},{- "id": 120,+ "id": 122,"name": "session","kind": 32,"kindString": "Variable",@@ -4506,7 +4530,7 @@}},{- "id": 119,+ "id": 121,"name": "user","kind": 32,"kindString": "Variable",@@ -4540,10 +4564,10 @@"title": "Variables","kind": 32,"children": [+ 124,+ 123,122,- 121,- 120,- 119+ 121]}],@@ -4561,7 +4585,7 @@},"inheritedFrom": {"type": "reference",- "id": 109,+ "id": 111,"name": "GoTrueClient.verifyOTP"}}@@ -4575,7 +4599,7 @@],"inheritedFrom": {"type": "reference",- "id": 109,+ "id": 111,"name": "GoTrueClient.verifyOTP"}}@@ -4585,39 +4609,39 @@"title": "Constructors","kind": 512,"children": [- 62+ 64]},{"title": "Properties","kind": 1024,"children": [- 65,- 68,67,- 66,70,69,+ 68,72,- 71+ 71,+ 74,+ 73]},{"title": "Methods","kind": 2048,"children": [- 149,- 161,+ 151,+ 163,+ 129,127,+ 148,+ 142,+ 91,+ 159,+ 75,+ 135,125,- 146,- 140,- 89,- 157,- 73,- 133,- 123,- 109+ 111]}],@@ -4641,7 +4665,7 @@"title": "Classes","kind": 128,"children": [- 61+ 63]}],@@ -4654,7 +4678,7 @@]},{- "id": 201,+ "id": 203,"name": "\"lib/SupabaseQueryBuilder\"","kind": 1,"kindString": "Module",@@ -4664,7 +4688,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts","children": [{- "id": 202,+ "id": 204,"name": "SupabaseQueryBuilder","kind": 128,"kindString": "Class",@@ -4673,7 +4697,7 @@},"typeParameter": [{- "id": 203,+ "id": 205,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -4684,7 +4708,7 @@],"children": [{- "id": 206,+ "id": 208,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -4693,7 +4717,7 @@},"signatures": [{- "id": 207,+ "id": 209,"name": "new SupabaseQueryBuilder","kind": 16384,"kindString": "Constructor signature",@@ -4702,7 +4726,7 @@},"parameters": [{- "id": 208,+ "id": 210,"name": "url","kind": 32768,"kindString": "Parameter",@@ -4715,7 +4739,7 @@}},{- "id": 209,+ "id": 211,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -4726,7 +4750,7 @@"type": {"type": "reflection","declaration": {- "id": 210,+ "id": 212,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4735,7 +4759,37 @@},"children": [{- "id": 211,+ "id": 220,+ "name": "fetch",+ "kind": 32,+ "kindString": "Variable",+ "flags": {+ "isExported": true+ },+ "sources": [+ {+ "fileName": "src/lib/SupabaseQueryBuilder.ts",+ "line": 17,+ "character": 11+ }+ ],+ "type": {+ "type": "union",+ "types": [+ {+ "type": "intrinsic",+ "name": "undefined"+ },+ {+ "type": "reference",+ "id": 220,+ "name": "fetch"+ }+ ]+ }+ },+ {+ "id": 213,"name": "headers","kind": 32,"kindString": "Variable",@@ -4752,7 +4806,7 @@"type": {"type": "reflection","declaration": {- "id": 212,+ "id": 214,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -4761,7 +4815,7 @@},"indexSignature": [{- "id": 213,+ "id": 215,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -4770,7 +4824,7 @@},"parameters": [{- "id": 214,+ "id": 216,"name": "key","kind": 32768,"kindString": "Parameter",@@ -4793,7 +4847,7 @@}},{- "id": 216,+ "id": 218,"name": "realtime","kind": 32,"kindString": "Variable",@@ -4813,7 +4867,7 @@}},{- "id": 215,+ "id": 217,"name": "schema","kind": 32,"kindString": "Variable",@@ -4833,7 +4887,7 @@}},{- "id": 217,+ "id": 219,"name": "table","kind": 32,"kindString": "Variable",@@ -4858,10 +4912,11 @@"title": "Variables","kind": 32,"children": [- 211,- 216,- 215,- 217+ 220,+ 213,+ 218,+ 217,+ 219]}],@@ -4878,7 +4933,7 @@],"type": {"type": "reference",- "id": 202,+ "id": 204,"name": "SupabaseQueryBuilder"},"overwrites": {@@ -4900,7 +4955,7 @@}},{- "id": 205,+ "id": 207,"name": "_realtime","kind": 1024,"kindString": "Property",@@ -4921,7 +4976,7 @@}},{- "id": 204,+ "id": 206,"name": "_subscription","kind": 1024,"kindString": "Property",@@ -4938,12 +4993,12 @@],"type": {"type": "reference",- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient"}},{- "id": 276,+ "id": 279,"name": "body","kind": 1024,"kindString": "Property",@@ -4955,7 +5010,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 48,+ "line": 49,"character": 18}],@@ -4989,12 +5044,39 @@},"inheritedFrom": {"type": "reference",- "id": 276,+ "id": 279,"name": "PostgrestBuilder.body"}},{- "id": 271,+ "id": 282,+ "name": "fetch",+ "kind": 1024,+ "kindString": "Property",+ "flags": {+ "isProtected": true,+ "isExported": true+ },+ "sources": [+ {+ "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",+ "line": 52,+ "character": 19+ }+ ],+ "type": {+ "type": "reference",+ "id": 37,+ "name": "Fetch"+ },+ "inheritedFrom": {+ "type": "reference",+ "id": 282,+ "name": "PostgrestBuilder.fetch"+ }+ },+ {+ "id": 274,"name": "headers","kind": 1024,"kindString": "Property",@@ -5005,14 +5087,14 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 44,+ "line": 45,"character": 21}],"type": {"type": "reflection","declaration": {- "id": 272,+ "id": 275,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5021,7 +5103,7 @@},"indexSignature": [{- "id": 273,+ "id": 276,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -5030,7 +5112,7 @@},"parameters": [{- "id": 274,+ "id": 277,"name": "key","kind": 32768,"kindString": "Parameter",@@ -5052,7 +5134,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 44,+ "line": 45,"character": 22}]@@ -5060,12 +5142,12 @@},"inheritedFrom": {"type": "reference",- "id": 271,+ "id": 274,"name": "PostgrestBuilder.headers"}},{- "id": 269,+ "id": 272,"name": "method","kind": 1024,"kindString": "Property",@@ -5076,7 +5158,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 42,+ "line": 43,"character": 20}],@@ -5107,12 +5189,12 @@},"inheritedFrom": {"type": "reference",- "id": 269,+ "id": 272,"name": "PostgrestBuilder.method"}},{- "id": 275,+ "id": 278,"name": "schema","kind": 1024,"kindString": "Property",@@ -5124,7 +5206,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 47,+ "line": 48,"character": 20}],@@ -5143,12 +5225,12 @@},"inheritedFrom": {"type": "reference",- "id": 275,+ "id": 278,"name": "PostgrestBuilder.schema"}},{- "id": 277,+ "id": 280,"name": "shouldThrowOnError","kind": 1024,"kindString": "Property",@@ -5159,7 +5241,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 49,+ "line": 50,"character": 32}],@@ -5169,12 +5251,12 @@},"inheritedFrom": {"type": "reference",- "id": 277,+ "id": 280,"name": "PostgrestBuilder.shouldThrowOnError"}},{- "id": 278,+ "id": 281,"name": "signal","kind": 1024,"kindString": "Property",@@ -5186,7 +5268,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 50,+ "line": 51,"character": 20}],@@ -5196,12 +5278,12 @@},"inheritedFrom": {"type": "reference",- "id": 278,+ "id": 281,"name": "PostgrestBuilder.signal"}},{- "id": 270,+ "id": 273,"name": "url","kind": 1024,"kindString": "Property",@@ -5212,7 +5294,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 43,+ "line": 44,"character": 17}],@@ -5222,12 +5304,12 @@},"inheritedFrom": {"type": "reference",- "id": 270,+ "id": 273,"name": "PostgrestBuilder.url"}},{- "id": 263,+ "id": 266,"name": "delete","kind": 2048,"kindString": "Method",@@ -5236,7 +5318,7 @@},"signatures": [{- "id": 264,+ "id": 267,"name": "delete","kind": 4096,"kindString": "Call signature",@@ -5248,7 +5330,7 @@},"parameters": [{- "id": 265,+ "id": 268,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -5260,7 +5342,7 @@"type": {"type": "reflection","declaration": {- "id": 266,+ "id": 269,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5269,7 +5351,7 @@},"children": [{- "id": 268,+ "id": 271,"name": "count","kind": 32,"kindString": "Variable",@@ -5282,7 +5364,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 29}],@@ -5313,7 +5395,7 @@}},{- "id": 267,+ "id": 270,"name": "returning","kind": 32,"kindString": "Variable",@@ -5326,7 +5408,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 22}],@@ -5354,15 +5436,15 @@"title": "Variables","kind": 32,"children": [- 268,- 267+ 271,+ 270]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 11}]@@ -5382,7 +5464,7 @@},"inheritedFrom": {"type": "reference",- "id": 263,+ "id": 266,"name": "PostgrestQueryBuilder.delete"}}@@ -5390,18 +5472,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 73,+ "line": 74,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 263,+ "id": 266,"name": "PostgrestQueryBuilder.delete"}},{- "id": 232,+ "id": 235,"name": "insert","kind": 2048,"kindString": "Method",@@ -5410,7 +5492,7 @@},"signatures": [{- "id": 233,+ "id": 236,"name": "insert","kind": 4096,"kindString": "Call signature",@@ -5422,7 +5504,7 @@},"parameters": [{- "id": 234,+ "id": 237,"name": "values","kind": 32768,"kindString": "Parameter",@@ -5462,7 +5544,7 @@}},{- "id": 235,+ "id": 238,"name": "options","kind": 32768,"kindString": "Parameter",@@ -5480,7 +5562,7 @@{"type": "reflection","declaration": {- "id": 236,+ "id": 239,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5489,7 +5571,7 @@},"children": [{- "id": 238,+ "id": 241,"name": "count","kind": 32,"kindString": "Variable",@@ -5500,7 +5582,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 30,+ "line": 31,"character": 13}],@@ -5527,7 +5609,7 @@}},{- "id": 237,+ "id": 240,"name": "returning","kind": 32,"kindString": "Variable",@@ -5538,7 +5620,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 29,+ "line": 30,"character": 17}],@@ -5562,8 +5644,8 @@"title": "Variables","kind": 32,"children": [- 238,- 237+ 241,+ 240]}]@@ -5585,12 +5667,12 @@},"inheritedFrom": {"type": "reference",- "id": 232,+ "id": 235,"name": "PostgrestQueryBuilder.insert"}},{- "id": 239,+ "id": 242,"name": "insert","kind": 4096,"kindString": "Call signature",@@ -5607,7 +5689,7 @@},"parameters": [{- "id": 240,+ "id": 243,"name": "values","kind": 32768,"kindString": "Parameter",@@ -5644,7 +5726,7 @@}},{- "id": 241,+ "id": 244,"name": "options","kind": 32768,"kindString": "Parameter",@@ -5662,7 +5744,7 @@{"type": "reflection","declaration": {- "id": 242,+ "id": 245,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5671,7 +5753,7 @@},"children": [{- "id": 246,+ "id": 249,"name": "count","kind": 32,"kindString": "Variable",@@ -5682,7 +5764,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 39,+ "line": 40,"character": 13}],@@ -5709,7 +5791,7 @@}},{- "id": 244,+ "id": 247,"name": "onConflict","kind": 32,"kindString": "Variable",@@ -5720,7 +5802,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 37,+ "line": 38,"character": 18}],@@ -5739,7 +5821,7 @@}},{- "id": 245,+ "id": 248,"name": "returning","kind": 32,"kindString": "Variable",@@ -5750,7 +5832,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 38,+ "line": 39,"character": 17}],@@ -5769,7 +5851,7 @@}},{- "id": 243,+ "id": 246,"name": "upsert","kind": 32,"kindString": "Variable",@@ -5780,7 +5862,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 36,+ "line": 37,"character": 14}],@@ -5808,10 +5890,10 @@"title": "Variables","kind": 32,"children": [- 246,- 244,- 245,- 243+ 249,+ 247,+ 248,+ 246]}]@@ -5833,7 +5915,7 @@},"inheritedFrom": {"type": "reference",- "id": 232,+ "id": 235,"name": "PostgrestQueryBuilder.insert"}}@@ -5841,23 +5923,23 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 28,+ "line": 29,"character": 10},{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 35,+ "line": 36,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 232,+ "id": 235,"name": "PostgrestQueryBuilder.insert"}},{- "id": 218,+ "id": 221,"name": "on","kind": 2048,"kindString": "Method",@@ -5866,7 +5948,7 @@},"signatures": [{- "id": 219,+ "id": 222,"name": "on","kind": 4096,"kindString": "Call signature",@@ -5878,7 +5960,7 @@},"parameters": [{- "id": 220,+ "id": 223,"name": "event","kind": 32768,"kindString": "Parameter",@@ -5890,12 +5972,12 @@},"type": {"type": "reference",- "id": 59,+ "id": 61,"name": "SupabaseEventTypes"}},{- "id": 221,+ "id": 224,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -5908,7 +5990,7 @@"type": {"type": "reflection","declaration": {- "id": 222,+ "id": 225,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -5917,7 +5999,7 @@},"signatures": [{- "id": 223,+ "id": 226,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -5926,7 +6008,7 @@},"parameters": [{- "id": 224,+ "id": 227,"name": "payload","kind": 32768,"kindString": "Parameter",@@ -5935,7 +6017,7 @@},"type": {"type": "reference",- "id": 50,+ "id": 52,"typeArguments": [{"type": "typeParameter",@@ -5955,7 +6037,7 @@"sources": [{"fileName": "src/lib/SupabaseQueryBuilder.ts",- "line": 37,+ "line": 39,"character": 13}]@@ -5965,7 +6047,7 @@],"type": {"type": "reference",- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient"}}@@ -5973,13 +6055,13 @@"sources": [{"fileName": "src/lib/SupabaseQueryBuilder.ts",- "line": 35,+ "line": 37,"character": 4}]},{- "id": 225,+ "id": 228,"name": "select","kind": 2048,"kindString": "Method",@@ -5988,7 +6070,7 @@},"signatures": [{- "id": 226,+ "id": 229,"name": "select","kind": 4096,"kindString": "Call signature",@@ -6000,7 +6082,7 @@},"parameters": [{- "id": 227,+ "id": 230,"name": "columns","kind": 32768,"kindString": "Parameter",@@ -6026,7 +6108,7 @@}},{- "id": 228,+ "id": 231,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -6038,7 +6120,7 @@"type": {"type": "reflection","declaration": {- "id": 229,+ "id": 232,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6047,7 +6129,7 @@},"children": [{- "id": 231,+ "id": 234,"name": "count","kind": 32,"kindString": "Variable",@@ -6060,7 +6142,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 42}],@@ -6091,7 +6173,7 @@}},{- "id": 230,+ "id": 233,"name": "head","kind": 32,"kindString": "Variable",@@ -6104,7 +6186,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 35}],@@ -6132,15 +6214,15 @@"title": "Variables","kind": 32,"children": [- 231,- 230+ 234,+ 233]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 28}]@@ -6160,7 +6242,7 @@},"inheritedFrom": {"type": "reference",- "id": 225,+ "id": 228,"name": "PostgrestQueryBuilder.select"}}@@ -6168,18 +6250,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 17,+ "line": 18,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 225,+ "id": 228,"name": "PostgrestQueryBuilder.select"}},{- "id": 281,+ "id": 285,"name": "then","kind": 2048,"kindString": "Method",@@ -6188,7 +6270,7 @@},"signatures": [{- "id": 282,+ "id": 286,"name": "then","kind": 4096,"kindString": "Call signature",@@ -6197,7 +6279,7 @@},"typeParameter": [{- "id": 283,+ "id": 287,"name": "TResult1","kind": 131072,"kindString": "Type parameter",@@ -6206,7 +6288,7 @@}},{- "id": 284,+ "id": 288,"name": "TResult2","kind": 131072,"kindString": "Type parameter",@@ -6217,7 +6299,7 @@],"parameters": [{- "id": 285,+ "id": 289,"name": "onfulfilled","kind": 32768,"kindString": "Parameter",@@ -6231,7 +6313,7 @@{"type": "reflection","declaration": {- "id": 286,+ "id": 290,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6240,7 +6322,7 @@},"signatures": [{- "id": 287,+ "id": 291,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -6249,7 +6331,7 @@},"parameters": [{- "id": 288,+ "id": 292,"name": "value","kind": 32768,"kindString": "Parameter",@@ -6312,7 +6394,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 59,+ "line": 61,"character": 75}]@@ -6330,7 +6412,7 @@}},{- "id": 289,+ "id": 293,"name": "onrejected","kind": 32768,"kindString": "Parameter",@@ -6344,7 +6426,7 @@{"type": "reflection","declaration": {- "id": 290,+ "id": 294,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6353,7 +6435,7 @@},"signatures": [{- "id": 291,+ "id": 295,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -6362,7 +6444,7 @@},"parameters": [{- "id": 292,+ "id": 296,"name": "reason","kind": 32768,"kindString": "Parameter",@@ -6407,7 +6489,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 59,+ "line": 61,"character": 176}]@@ -6460,7 +6542,7 @@},"inheritedFrom": {"type": "reference",- "id": 281,+ "id": 285,"name": "PostgrestBuilder.then"}}@@ -6468,18 +6550,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 59,+ "line": 61,"character": 8}],"inheritedFrom": {"type": "reference",- "id": 281,+ "id": 285,"name": "PostgrestBuilder.then"}},{- "id": 279,+ "id": 283,"name": "throwOnError","kind": 2048,"kindString": "Method",@@ -6488,7 +6570,7 @@},"signatures": [{- "id": 280,+ "id": 284,"name": "throwOnError","kind": 4096,"kindString": "Call signature",@@ -6511,7 +6593,7 @@},"inheritedFrom": {"type": "reference",- "id": 279,+ "id": 283,"name": "PostgrestBuilder.throwOnError"}}@@ -6519,18 +6601,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts",- "line": 58,+ "line": 60,"character": 16}],"inheritedFrom": {"type": "reference",- "id": 279,+ "id": 283,"name": "PostgrestBuilder.throwOnError"}},{- "id": 256,+ "id": 259,"name": "update","kind": 2048,"kindString": "Method",@@ -6539,7 +6621,7 @@},"signatures": [{- "id": 257,+ "id": 260,"name": "update","kind": 4096,"kindString": "Call signature",@@ -6551,7 +6633,7 @@},"parameters": [{- "id": 258,+ "id": 261,"name": "values","kind": 32768,"kindString": "Parameter",@@ -6573,7 +6655,7 @@}},{- "id": 259,+ "id": 262,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -6585,7 +6667,7 @@"type": {"type": "reflection","declaration": {- "id": 260,+ "id": 263,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6594,7 +6676,7 @@},"children": [{- "id": 262,+ "id": 265,"name": "count","kind": 32,"kindString": "Variable",@@ -6607,7 +6689,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 49}],@@ -6638,7 +6720,7 @@}},{- "id": 261,+ "id": 264,"name": "returning","kind": 32,"kindString": "Variable",@@ -6651,7 +6733,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 42}],@@ -6679,15 +6761,15 @@"title": "Variables","kind": 32,"children": [- 262,- 261+ 265,+ 264]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 30}]@@ -6707,7 +6789,7 @@},"inheritedFrom": {"type": "reference",- "id": 256,+ "id": 259,"name": "PostgrestQueryBuilder.update"}}@@ -6715,18 +6797,18 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 63,+ "line": 64,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 256,+ "id": 259,"name": "PostgrestQueryBuilder.update"}},{- "id": 247,+ "id": 250,"name": "upsert","kind": 2048,"kindString": "Method",@@ -6735,7 +6817,7 @@},"signatures": [{- "id": 248,+ "id": 251,"name": "upsert","kind": 4096,"kindString": "Call signature",@@ -6747,7 +6829,7 @@},"parameters": [{- "id": 249,+ "id": 252,"name": "values","kind": 32768,"kindString": "Parameter",@@ -6787,7 +6869,7 @@}},{- "id": 250,+ "id": 253,"name": "__namedParameters","kind": 32768,"kindString": "Parameter",@@ -6799,7 +6881,7 @@"type": {"type": "reflection","declaration": {- "id": 251,+ "id": 254,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -6808,7 +6890,7 @@},"children": [{- "id": 254,+ "id": 257,"name": "count","kind": 32,"kindString": "Variable",@@ -6821,7 +6903,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 76}],@@ -6852,7 +6934,7 @@}},{- "id": 255,+ "id": 258,"name": "ignoreDuplicates","kind": 32,"kindString": "Variable",@@ -6865,7 +6947,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 94}],@@ -6888,7 +6970,7 @@}},{- "id": 252,+ "id": 255,"name": "onConflict","kind": 32,"kindString": "Variable",@@ -6901,7 +6983,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 58}],@@ -6920,7 +7002,7 @@}},{- "id": 253,+ "id": 256,"name": "returning","kind": 32,"kindString": "Variable",@@ -6933,7 +7015,7 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 69}],@@ -6961,17 +7043,17 @@"title": "Variables","kind": 32,"children": [- 254,+ 257,+ 258,255,- 252,- 253+ 256]}],"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 45}]@@ -6991,7 +7073,7 @@},"inheritedFrom": {"type": "reference",- "id": 247,+ "id": 250,"name": "PostgrestQueryBuilder.upsert"}}@@ -6999,13 +7081,13 @@"sources": [{"fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts",- "line": 50,+ "line": 51,"character": 10}],"inheritedFrom": {"type": "reference",- "id": 247,+ "id": 250,"name": "PostgrestQueryBuilder.upsert"}}@@ -7015,36 +7097,37 @@"title": "Constructors","kind": 512,"children": [- 206+ 208]},{"title": "Properties","kind": 1024,"children": [- 205,- 204,- 276,- 271,- 269,- 275,- 277,+ 207,+ 206,+ 279,+ 282,+ 274,+ 272,278,- 270+ 280,+ 281,+ 273]},{"title": "Methods","kind": 2048,"children": [- 263,- 232,- 218,- 225,- 281,- 279,- 256,- 247+ 266,+ 235,+ 221,+ 228,+ 285,+ 283,+ 259,+ 250]}],@@ -7092,7 +7175,7 @@"title": "Classes","kind": 128,"children": [- 202+ 204]}],@@ -7105,7 +7188,7 @@]},{- "id": 171,+ "id": 173,"name": "\"lib/SupabaseRealtimeClient\"","kind": 1,"kindString": "Module",@@ -7115,7 +7198,7 @@"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts","children": [{- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient","kind": 128,"kindString": "Class",@@ -7124,7 +7207,7 @@},"children": [{- "id": 174,+ "id": 176,"name": "constructor","kind": 512,"kindString": "Constructor",@@ -7133,7 +7216,7 @@},"signatures": [{- "id": 175,+ "id": 177,"name": "new SupabaseRealtimeClient","kind": 16384,"kindString": "Constructor signature",@@ -7142,7 +7225,7 @@},"parameters": [{- "id": 176,+ "id": 178,"name": "socket","kind": 32768,"kindString": "Parameter",@@ -7155,7 +7238,7 @@}},{- "id": 177,+ "id": 179,"name": "headers","kind": 32768,"kindString": "Parameter",@@ -7165,7 +7248,7 @@"type": {"type": "reflection","declaration": {- "id": 178,+ "id": 180,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7174,7 +7257,7 @@},"indexSignature": [{- "id": 179,+ "id": 181,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -7183,7 +7266,7 @@},"parameters": [{- "id": 180,+ "id": 182,"name": "key","kind": 32768,"kindString": "Parameter",@@ -7213,7 +7296,7 @@}},{- "id": 181,+ "id": 183,"name": "schema","kind": 32768,"kindString": "Parameter",@@ -7226,7 +7309,7 @@}},{- "id": 182,+ "id": 184,"name": "tableName","kind": 32768,"kindString": "Parameter",@@ -7241,7 +7324,7 @@],"type": {"type": "reference",- "id": 172,+ "id": 174,"name": "SupabaseRealtimeClient"}}@@ -7255,7 +7338,7 @@]},{- "id": 173,+ "id": 175,"name": "subscription","kind": 1024,"kindString": "Property",@@ -7275,7 +7358,7 @@}},{- "id": 183,+ "id": 185,"name": "getPayloadRecords","kind": 2048,"kindString": "Method",@@ -7285,7 +7368,7 @@},"signatures": [{- "id": 184,+ "id": 186,"name": "getPayloadRecords","kind": 4096,"kindString": "Call signature",@@ -7294,7 +7377,7 @@},"parameters": [{- "id": 185,+ "id": 187,"name": "payload","kind": 32768,"kindString": "Parameter",@@ -7310,7 +7393,7 @@"type": {"type": "reflection","declaration": {- "id": 186,+ "id": 188,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7319,7 +7402,7 @@},"children": [{- "id": 187,+ "id": 189,"name": "new","kind": 32,"kindString": "Variable",@@ -7336,7 +7419,7 @@"type": {"type": "reflection","declaration": {- "id": 188,+ "id": 190,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7347,7 +7430,7 @@}},{- "id": 189,+ "id": 191,"name": "old","kind": 32,"kindString": "Variable",@@ -7364,7 +7447,7 @@"type": {"type": "reflection","declaration": {- "id": 190,+ "id": 192,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7380,8 +7463,8 @@"title": "Variables","kind": 32,"children": [- 187,- 189+ 189,+ 191]}]@@ -7398,7 +7481,7 @@]},{- "id": 191,+ "id": 193,"name": "on","kind": 2048,"kindString": "Method",@@ -7407,7 +7490,7 @@},"signatures": [{- "id": 192,+ "id": 194,"name": "on","kind": 4096,"kindString": "Call signature",@@ -7419,7 +7502,7 @@},"parameters": [{- "id": 193,+ "id": 195,"name": "event","kind": 32768,"kindString": "Parameter",@@ -7431,12 +7514,12 @@},"type": {"type": "reference",- "id": 59,+ "id": 61,"name": "SupabaseEventTypes"}},{- "id": 194,+ "id": 196,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -7449,7 +7532,7 @@"type": {"type": "reflection","declaration": {- "id": 195,+ "id": 197,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -7458,7 +7541,7 @@},"signatures": [{- "id": 196,+ "id": 198,"name": "__call","kind": 4096,"kindString": "Call signature",@@ -7467,7 +7550,7 @@},"parameters": [{- "id": 197,+ "id": 199,"name": "payload","kind": 32768,"kindString": "Parameter",@@ -7476,7 +7559,7 @@},"type": {"type": "reference",- "id": 50,+ "id": 52,"typeArguments": [{"type": "intrinsic",@@ -7519,7 +7602,7 @@]},{- "id": 198,+ "id": 200,"name": "subscribe","kind": 2048,"kindString": "Method",@@ -7528,7 +7611,7 @@},"signatures": [{- "id": 199,+ "id": 201,"name": "subscribe","kind": 4096,"kindString": "Call signature",@@ -7540,7 +7623,7 @@},"parameters": [{- "id": 200,+ "id": 202,"name": "callback","kind": 32768,"kindString": "Parameter",@@ -7574,23 +7657,23 @@"title": "Constructors","kind": 512,"children": [- 174+ 176]},{"title": "Properties","kind": 1024,"children": [- 173+ 175]},{"title": "Methods","kind": 2048,"children": [- 183,- 191,- 198+ 185,+ 193,+ 200]}],@@ -7608,7 +7691,7 @@"title": "Classes","kind": 128,"children": [- 172+ 174]}],@@ -7948,6 +8031,7 @@],"type": {"type": "reference",+ "id": 37,"name": "Fetch"},"inheritedFrom": {@@ -8149,7 +8233,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 6,+ "line": 8,"character": 42}],@@ -8272,6 +8356,7 @@],"type": {"type": "reference",+ "id": 37,"name": "Fetch"}},@@ -8448,7 +8533,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 6,+ "line": 8,"character": 50}]@@ -8458,6 +8543,30 @@},{"id": 37,+ "name": "Fetch",+ "kind": 4194304,+ "kindString": "Type alias",+ "flags": {+ "isExported": true+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 4,+ "character": 17+ }+ ],+ "type": {+ "type": "query",+ "queryType": {+ "type": "reference",+ "id": 220,+ "name": "fetch"+ }+ }+ },+ {+ "id": 38,"name": "GoTrueClientOptions","kind": 4194304,"kindString": "Type alias",@@ -8465,7 +8574,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 4,+ "line": 6,"character": 24}],@@ -8491,7 +8600,7 @@}},{- "id": 38,+ "id": 39,"name": "SupabaseClientOptions","kind": 4194304,"kindString": "Type alias",@@ -8501,14 +8610,14 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 8,+ "line": 10,"character": 33}],"type": {"type": "reflection","declaration": {- "id": 39,+ "id": 40,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -8517,7 +8626,7 @@},"children": [{- "id": 45,+ "id": 46,"name": "autoRefreshToken","kind": 32,"kindString": "Variable",@@ -8531,7 +8640,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 20,+ "line": 22,"character": 18}],@@ -8554,7 +8663,7 @@}},{- "id": 47,+ "id": 48,"name": "detectSessionInUrl","kind": 32,"kindString": "Variable",@@ -8568,7 +8677,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 28,+ "line": 30,"character": 20}],@@ -8591,7 +8700,32 @@}},{- "id": 41,+ "id": 51,+ "name": "fetch",+ "kind": 32,+ "kindString": "Variable",+ "flags": {+ "isExported": true,+ "isOptional": true+ },+ "comment": {+ "shortText": "A custom `fetch` implementation."+ },+ "sources": [+ {+ "fileName": "src/lib/types.ts",+ "line": 44,+ "character": 7+ }+ ],+ "type": {+ "type": "reference",+ "id": 37,+ "name": "Fetch"+ }+ },+ {+ "id": 42,"name": "headers","kind": 32,"kindString": "Variable",@@ -8605,7 +8739,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 16,+ "line": 18,"character": 9}],@@ -8619,7 +8753,7 @@{"type": "reflection","declaration": {- "id": 42,+ "id": 43,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -8628,7 +8762,7 @@},"indexSignature": [{- "id": 43,+ "id": 44,"name": "__index","kind": 8192,"kindString": "Index signature",@@ -8637,7 +8771,7 @@},"parameters": [{- "id": 44,+ "id": 45,"name": "key","kind": 32768,"kindString": "Parameter",@@ -8662,7 +8796,7 @@}},{- "id": 48,+ "id": 49,"name": "localStorage","kind": 32,"kindString": "Variable",@@ -8676,7 +8810,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 32,+ "line": 34,"character": 14}],@@ -8693,7 +8827,7 @@}},{- "id": 46,+ "id": 47,"name": "persistSession","kind": 32,"kindString": "Variable",@@ -8707,7 +8841,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 24,+ "line": 26,"character": 16}],@@ -8730,7 +8864,7 @@}},{- "id": 49,+ "id": 50,"name": "realtime","kind": 32,"kindString": "Variable",@@ -8744,7 +8878,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 37,+ "line": 39,"character": 10}],@@ -8754,7 +8888,7 @@}},{- "id": 40,+ "id": 41,"name": "schema","kind": 32,"kindString": "Variable",@@ -8768,7 +8902,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 12,+ "line": 14,"character": 8}],@@ -8792,20 +8926,21 @@"title": "Variables","kind": 32,"children": [- 45,- 47,- 41,- 48,46,+ 48,+ 51,+ 42,49,- 40+ 47,+ 50,+ 41]}],"sources": [{"fileName": "src/lib/types.ts",- "line": 8,+ "line": 10,"character": 35}]@@ -8813,7 +8948,7 @@}},{- "id": 59,+ "id": 61,"name": "SupabaseEventTypes","kind": 4194304,"kindString": "Type alias",@@ -8823,7 +8958,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 51,+ "line": 58,"character": 30}],@@ -8850,7 +8985,7 @@}},{- "id": 50,+ "id": 52,"name": "SupabaseRealtimePayload","kind": 4194304,"kindString": "Type alias",@@ -8859,7 +8994,7 @@},"typeParameter": [{- "id": 51,+ "id": 53,"name": "T","kind": 131072,"kindString": "Type parameter",@@ -8871,14 +9006,14 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 40,+ "line": 47,"character": 35}],"type": {"type": "reflection","declaration": {- "id": 52,+ "id": 54,"name": "__type","kind": 65536,"kindString": "Type literal",@@ -8887,7 +9022,7 @@},"children": [{- "id": 53,+ "id": 55,"name": "commit_timestamp","kind": 32,"kindString": "Variable",@@ -8897,7 +9032,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 41,+ "line": 48,"character": 18}],@@ -8907,7 +9042,7 @@}},{- "id": 54,+ "id": 56,"name": "eventType","kind": 32,"kindString": "Variable",@@ -8917,7 +9052,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 42,+ "line": 49,"character": 11}],@@ -8940,7 +9075,7 @@}},{- "id": 57,+ "id": 59,"name": "new","kind": 32,"kindString": "Variable",@@ -8953,7 +9088,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 46,+ "line": 53,"character": 5}],@@ -8963,7 +9098,7 @@}},{- "id": 58,+ "id": 60,"name": "old","kind": 32,"kindString": "Variable",@@ -8976,7 +9111,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 48,+ "line": 55,"character": 5}],@@ -8986,7 +9121,7 @@}},{- "id": 55,+ "id": 57,"name": "schema","kind": 32,"kindString": "Variable",@@ -8996,7 +9131,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 43,+ "line": 50,"character": 8}],@@ -9006,7 +9141,7 @@}},{- "id": 56,+ "id": 58,"name": "table","kind": 32,"kindString": "Variable",@@ -9016,7 +9151,7 @@"sources": [{"fileName": "src/lib/types.ts",- "line": 44,+ "line": 51,"character": 7}],@@ -9031,19 +9166,19 @@"title": "Variables","kind": 32,"children": [- 53,- 54,- 57,- 58,55,- 56+ 56,+ 59,+ 60,+ 57,+ 58]}],"sources": [{"fileName": "src/lib/types.ts",- "line": 40,+ "line": 47,"character": 40}]@@ -9065,8 +9200,9 @@"children": [37,38,- 59,- 50+ 39,+ 61,+ 52]}],@@ -9134,11 +9270,11 @@"title": "Modules","kind": 1,"children": [- 293,- 365,- 60,- 201,- 171,+ 297,+ 370,+ 62,+ 203,+ 173,3,6,12,diff --git a/web/spec/supabase.yml b/web/spec/supabase.ymlindex be5c4a7b479..4f989fa9315 100644--- a/web/spec/supabase.yml+++ b/web/spec/supabase.yml@@ -42,6 +42,7 @@ info:- Reset Password (Email)- name: 'Auth (Server Only)'items:+ - auth.api.createUser()- auth.api.deleteUser()- auth.api.generateLink()- auth.api.inviteUserByEmail()@@ -332,7 +333,7 @@ pages:auth.signUp():title: 'signUp()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.signUp'+ $ref: '@supabase/gotrue-js.GoTrueClient.signUp'notes: |- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)- If "Email Confirmations" is turned on, a `user` is returned but `session` will be null@@ -372,7 +373,7 @@ pages:auth.signIn():title: 'signIn()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.signIn'+ $ref: '@supabase/gotrue-js.GoTrueClient.signIn'notes: |- A user can sign up either via email or OAuth.- If you provide `email` without a `password`, the user will be sent a magic link.@@ -452,7 +453,7 @@ pages:auth.signOut():title: 'signOut()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.signOut'+ $ref: '@supabase/gotrue-js.GoTrueClient.signOut'examples:- name: Sign outisSpotlight: true@@ -463,7 +464,7 @@ pages:auth.session():title: 'session()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.session'+ $ref: '@supabase/gotrue-js.GoTrueClient.session'examples:- name: Get the session dataisSpotlight: true@@ -474,7 +475,7 @@ pages:auth.user():title: 'user()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.user'+ $ref: '@supabase/gotrue-js.GoTrueClient.user'examples:- name: Get the logged in userisSpotlight: true@@ -485,7 +486,7 @@ pages:auth.update():title: 'update()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.update'+ $ref: '@supabase/gotrue-js.GoTrueClient.update'notes: |User email: email updates will send an email to both the user's current and new email with a confirmation link.@@ -516,7 +517,7 @@ pages:auth.setAuth():title: 'setAuth()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.setAuth'+ $ref: '@supabase/gotrue-js.GoTrueClient.setAuth'examples:- name: Basic example.description: This is most useful on server-side functions where you cannot log the user in, but have access to the user's access token.@@ -575,7 +576,7 @@ pages:auth.onAuthStateChange():title: 'onAuthStateChange()'- $ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.onAuthStateChange'+ $ref: '@supabase/gotrue-js.GoTrueClient.onAuthStateChange'examples:- name: Listen to auth changesisSpotlight: true@@ -587,7 +588,7 @@ pages:```Reset Password (Email):- $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.resetPasswordForEmail'+ $ref: '@supabase/gotrue-js.GoTrueApi.resetPasswordForEmail'notes: |Sends a reset request to an email address.@@ -612,12 +613,29 @@ pages:.resetPasswordForEmail('[email protected]')```+ auth.api.createUser():+ title: 'createUser()'+ # $ref: '@supabase/gotrue-js.GoTrueApi.createUser'+ $ref: '@supabase/gotrue-js.GoTrueApi.createUser'+ notes: |+ - Requires a `service_role` key.+ - This function should be called on a server. Never expose your `service_role` key in the browser.+ examples:+ - name: Create a new user.+ isSpotlight: true+ js: |+ ```js+ const { user, error } = await supabase.auth.api.createUser({+ name: 'Yoda'+ })+ ```+auth.api.deleteUser():title: 'deleteUser()'- $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.deleteUser'+ $ref: '@supabase/gotrue-js.GoTrueApi.deleteUser'notes: |- Requires a `service_role` key.- - This function should only be called on a server. Never expose your `service_role` key in the browser.+ - This function should be called on a server. Never expose your `service_role` key in the browser.examples:- name: Remove a user completely.isSpotlight: true@@ -631,7 +649,7 @@ pages:auth.api.inviteUserByEmail():title: 'inviteUserByEmail()'- $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.inviteUserByEmail'+ $ref: '@supabase/gotrue-js.GoTrueApi.inviteUserByEmail'notes: |- Requires a `service_role` key.- This function should only be called on a server. Never expose your `service_role` key in the browser.@@ -647,7 +665,7 @@ pages:auth.api.sendMobileOTP():title: 'sendMobileOTP()'- $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.sendMobileOTP'+ $ref: '@supabase/gotrue-js.GoTrueApi.sendMobileOTP'notes: |- Requires a `service_role` key.- This function should only be called on a server. Never expose your `service_role` key in the browser.@@ -663,7 +681,7 @@ pages:auth.api.resetPasswordForEmail():title: 'resetPasswordForEmail()'- $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.resetPasswordForEmail'+ $ref: '@supabase/gotrue-js.GoTrueApi.resetPasswordForEmail'notes: |- Requires a `service_role` key.- This function should only be called on a server. Never expose your `service_role` key in the browser.@@ -679,7 +697,7 @@ pages:auth.api.generateLink():title: 'generateLink()'- $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.generateLink'+ $ref: '@supabase/gotrue-js.GoTrueApi.generateLink'notes: |- Requires a `service_role` key.- This function should only be called on a server. Never expose your `service_role` key in the browser.