{ "id": 0, "name": "@supabase/gotrue-js", "kind": 0, "flags": {}, "originalName": "", "children": [ { "id": 68, "name": "\"GoTrueApi\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", "children": [ { "id": 69, "name": "GoTrueApi", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 75, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 76, "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 77, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "originalName": "__0", "type": { "type": "reflection", "declaration": { "id": 78, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 80, "name": "headers", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 12, "character": 11 } ], "type": { "type": "reflection", "declaration": { "id": 81, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 82, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 83, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ] } } }, { "id": 79, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 11, "character": 7 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"\"" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 80, 79 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 10, "character": 14 } ] } } } ], "type": { "type": "reference", "id": 69, "name": "GoTrueApi" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 8, "character": 3 } ] }, { "id": 71, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 6, "character": 19 } ], "type": { "type": "reflection", "declaration": { "id": 72, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 73, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 74, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 6, "character": 20 } ] } } }, { "id": 70, "name": "url", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 5, "character": 15 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 124, "name": "getUrlForProvider", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 125, "name": "getUrlForProvider", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Generates the relevant login URL for a third-party provider." }, "parameters": [ { "id": 126, "name": "provider", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "One of the providers supported by GoTrue.\n" }, "type": { "type": "reference", "id": 66, "name": "Provider" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 119, "character": 19 } ] }, { "id": 127, "name": "getUser", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 128, "name": "getUser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Gets the user details." }, "parameters": [ { "id": 129, "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": "union", "types": [ { "type": "reflection", "declaration": { "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 131, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 132, "character": 19 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 132, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 132, "character": 26 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 131, 132 ] } ] } }, { "type": "reflection", "declaration": { "id": 133, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 134, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 134, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 135, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 134, "character": 32 } ], "type": { "type": "intrinsic", "name": "any" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 134, 135 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 127, "character": 15 } ] }, { "id": 105, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 106, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Sends an invite link to an email address." }, "parameters": [ { "id": 107, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 108, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 109, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 78, "character": 56 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 110, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 78, "character": 57 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 111, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 78, "character": 74 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 109, 111 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 78, "character": 50 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 78, "character": 25 } ] }, { "id": 146, "name": "refreshAccessToken", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 147, "name": "refreshAccessToken", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Generates a new JWT." }, "parameters": [ { "id": 148, "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": "union", "types": [ { "type": "reflection", "declaration": { "id": 149, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 150, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 165, "character": 19 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 151, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 165, "character": 26 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 150, 151 ] } ] } }, { "type": "reflection", "declaration": { "id": 152, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 153, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 167, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 154, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 167, "character": 32 } ], "type": { "type": "intrinsic", "name": "any" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 153, 154 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 158, "character": 26 } ] }, { "id": 112, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 113, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Sends a reset request to an email address." }, "parameters": [ { "id": 114, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 115, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 116, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 91, "character": 60 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 117, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 91, "character": 61 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 118, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 91, "character": 78 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 116, 118 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 91, "character": 54 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 91, "character": 29 } ] }, { "id": 98, "name": "sendMagicLinkEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 99, "name": "sendMagicLinkEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Sends a magic login link to an email address." }, "parameters": [ { "id": 100, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 101, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 102, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 65, "character": 57 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 103, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 65, "character": 58 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 104, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 65, "character": 75 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 102, 104 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 65, "character": 51 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 65, "character": 26 } ] }, { "id": 91, "name": "signInWithEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 92, "name": "signInWithEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Logs in an existing user using their email address." }, "parameters": [ { "id": 93, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 94, "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": 95, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 96, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 48, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 97, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 48, "character": 42 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 96, 97 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 48, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 45, "character": 23 } ] }, { "id": 119, "name": "signOut", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 120, "name": "signOut", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Removes a logged-in session." }, "parameters": [ { "id": 121, "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": 122, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 123, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 104, "character": 45 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 123 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 104, "character": 38 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 104, "character": 15 } ] }, { "id": 84, "name": "signUpWithEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 85, "name": "signUpWithEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Creates a new user using their email address." }, "parameters": [ { "id": 86, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 87, "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": 88, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 89, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 31, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 90, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 31, "character": 42 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 89, 90 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 31, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 28, "character": 23 } ] }, { "id": 136, "name": "updateUser", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 137, "name": "updateUser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Updates the user data." }, "parameters": [ { "id": 138, "name": "jwt", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "A valid, logged-in JWT." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 139, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The data you want to update.\n" }, "type": { "type": "reference", "id": 51, "name": "UserAttributes" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 140, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 141, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 148, "character": 19 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 142, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 148, "character": 26 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 141, 142 ] } ] } }, { "type": "reflection", "declaration": { "id": 143, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 144, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 150, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 145, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 150, "character": 32 } ], "type": { "type": "intrinsic", "name": "any" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 144, 145 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 143, "character": 18 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 75 ] }, { "title": "Properties", "kind": 1024, "children": [ 71, 70 ] }, { "title": "Methods", "kind": 2048, "children": [ 124, 127, 105, 146, 112, 98, 91, 119, 84, 136 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 4, "character": 30 } ] } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 69 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 1, "character": 0 } ] }, { "id": 194, "name": "\"GoTrueClient\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts", "children": [ { "id": 195, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 203, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "comment": { "shortText": "Create a new client for use in the browser." }, "signatures": [ { "id": 204, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "comment": { "shortText": "Create a new client for use in the browser." }, "parameters": [ { "id": 205, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 213, "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": 46, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } }, { "id": 212, "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": 45, "character": 22 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } }, { "id": 208, "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": 44, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "reflection", "declaration": { "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 210, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 211, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ] } } ] } }, { "id": 215, "name": "localStorage", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "\n" }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 48, "character": 16 } ], "type": { "type": "reference", "name": "Storage" } }, { "id": 214, "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": 47, "character": 18 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } }, { "id": 207, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "The URL of the GoTrue server." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 43, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 213, 212, 208, 215, 214, 207 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 42, "character": 22 } ] } } } ], "type": { "type": "reference", "id": 195, "name": "GoTrueClient" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 31, "character": 71 } ] }, { "id": 196, "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": 19, "character": 5 } ], "type": { "type": "reference", "id": 69, "name": "GoTrueApi" } }, { "id": 199, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 28, "character": 28 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 198, "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": 27, "character": 26 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 197, "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": 23, "character": 23 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 201, "name": "localStorage", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 30, "character": 24 } ], "type": { "type": "reference", "name": "Storage" } }, { "id": 200, "name": "persistSession", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 29, "character": 26 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 202, "name": "stateChangeEmmitters", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 31, "character": 32 } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "string" }, { "type": "reference", "id": 56, "name": "Subscription" } ], "name": "Map" }, "defaultValue": "new Map()" }, { "id": 314, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 315, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 316, "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": 317, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 318, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 387, "character": 21 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 319, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 387, "character": 28 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 318, 319 ] } ] } }, { "type": "reflection", "declaration": { "id": 320, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 321, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 392, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 322, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 392, "character": 32 } ], "type": { "type": "intrinsic", "name": "any" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 321, 322 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 367, "character": 33 } ] }, { "id": 278, "name": "_handeEmailSignIn", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 279, "name": "_handeEmailSignIn", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 280, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 281, "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": 282, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 283, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 279, "character": 19 } ], "type": { "type": "reference", "id": 27, "name": "Session" } }, { "id": 285, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 279, "character": 43 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 284, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 279, "character": 25 } ], "type": { "type": "reference", "id": 33, "name": "User" }, "defaultValue": "data.user" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 283, 285, 284 ] } ] } }, { "type": "reflection", "declaration": { "id": 286, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 287, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 281, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 289, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 281, "character": 44 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 288, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 281, "character": 31 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 287, 289, 288 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 269, "character": 33 } ] }, { "id": 290, "name": "_handeProviderSignIn", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 291, "name": "_handeProviderSignIn", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 292, "name": "provider", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 66, "name": "Provider" } } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 296, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 293, "character": 34 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 298, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 293, "character": 59 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 294, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 293, "character": 23 } ], "type": { "type": "reference", "id": 66, "name": "Provider" } }, { "id": 295, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 293, "character": 28 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 297, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 293, "character": 46 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 296, 298, 294, 295, 297 ] } ] } }, { "type": "reflection", "declaration": { "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 300, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 297, "character": 24 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 302, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 297, "character": 49 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 301, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 297, "character": 36 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 300, 302, 301 ] } ] } } ] } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 285, "character": 30 } ] }, { "id": 323, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 324, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 325, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 67, "name": "AuthChangeEvent" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 396, "character": 31 } ] }, { "id": 306, "name": "_persistSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 307, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 308, "name": "currentSession", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 27, "name": "Session" } }, { "id": 309, "name": "secondsToExpiry", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 315, "character": 25 } ] }, { "id": 312, "name": "_recoverSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 313, "name": "_recoverSession", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "null" } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 328, "character": 31 } ] }, { "id": 310, "name": "_removeSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 311, "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": 322, "character": 30 } ] }, { "id": 303, "name": "_saveSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 304, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 305, "name": "session", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 27, "name": "Session" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 301, "character": 22 } ] }, { "id": 256, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 257, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Gets the session data from a URL string" }, "parameters": [ { "id": 258, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "reflection", "declaration": { "id": 259, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 260, "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": 192, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 260 ] } ] } } ] } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 261, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 262, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 193, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 263, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 193, "character": 43 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 262, 263 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 193, "character": 14 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 191, "character": 25 } ] }, { "id": 268, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 269, "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 unsubcribe itself.\n" }, "parameters": [ { "id": 270, "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 271, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "signatures": [ { "id": 272, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 273, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 67, "name": "AuthChangeEvent" } }, { "id": 274, "name": "session", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 250, "character": 13 } ] } } } ], "type": { "type": "reflection", "declaration": { "id": 275, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 276, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 251, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 56, "name": "Subscription" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 277, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 251, "character": 39 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 276, 277 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 251, "character": 4 } ] } } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 249, "character": 19 } ] }, { "id": 243, "name": "refreshSession", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 244, "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": 245, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 246, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 147, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 248, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 149, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 247, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 148, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 246, 248, 247 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 146, "character": 34 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 146, "character": 22 } ] }, { "id": 241, "name": "session", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 242, "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": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 139, "character": 9 } ] }, { "id": 226, "name": "signIn", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 227, "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": 228, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The user login details." }, "type": { "type": "reflection", "declaration": { "id": 229, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 230, "name": "email", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "The user's email address." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 104, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 231, "name": "password", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "The user's password." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 105, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 232, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "One of the providers supported by GoTrue.\n" }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 106, "character": 12 } ], "type": { "type": "reference", "id": 66, "name": "Provider" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 230, 231, 232 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 103, "character": 27 } ] } } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 234, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 108, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 238, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 112, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 236, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 110, "character": 12 } ], "type": { "type": "reference", "id": 66, "name": "Provider" } }, { "id": 237, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 111, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 235, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 109, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 234, 238, 236, 237, 235 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 107, "character": 14 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 103, "character": 14 } ] }, { "id": 264, "name": "signOut", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 265, "name": "signOut", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Signs out the current user, if there is a logged in user." }, "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 267, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 235, "character": 34 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 267 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 235, "character": 27 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 235, "character": 15 } ] }, { "id": 216, "name": "signUp", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 217, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Creates a new user." }, "parameters": [ { "id": 218, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The user login details." }, "type": { "type": "reflection", "declaration": { "id": 219, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 220, "name": "email", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "The user's email address." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 76, "character": 9 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 221, "name": "password", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "The user's password.\n" }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 77, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 220, 221 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 75, "character": 27 } ] } } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 223, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 78, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 225, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 78, "character": 62 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 224, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 78, "character": 42 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 223, 225, 224 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 78, "character": 14 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 75, "character": 14 } ] }, { "id": 249, "name": "update", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 250, "name": "update", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Updates user data, if there is a logged in user." }, "parameters": [ { "id": 251, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 51, "name": "UserAttributes" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 253, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 171, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 255, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 171, "character": 58 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 254, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 171, "character": 38 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 253, 255, 254 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 171, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 169, "character": 14 } ] }, { "id": 239, "name": "user", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 240, "name": "user", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Returns the user data, if there is a logged in user." }, "type": { "type": "union", "types": [ { "type": "reference", "id": 33, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 132, "character": 6 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 203 ] }, { "title": "Properties", "kind": 1024, "children": [ 196, 199, 198, 197, 201, 200, 202 ] }, { "title": "Methods", "kind": 2048, "children": [ 314, 278, 290, 323, 306, 312, 310, 303, 256, 268, 243, 241, 226, 264, 216, 249, 239 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 14, "character": 33 } ] }, { "id": 326, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", "flags": { "isConst": true }, "children": [ { "id": 328, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 8, "character": 18 } ], "type": { "type": "intrinsic", "name": "boolean" }, "defaultValue": "true" }, { "id": 331, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 11, "character": 20 } ], "type": { "type": "intrinsic", "name": "boolean" }, "defaultValue": "true" }, { "id": 332, "name": "headers", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 12, "character": 9 } ], "type": { "type": "reflection", "declaration": { "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {} } }, "defaultValue": "DEFAULT_HEADERS" }, { "id": 330, "name": "localStorage", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 10, "character": 14 } ], "type": { "type": "reference", "name": "Storage" }, "defaultValue": "globalThis.localStorage" }, { "id": 329, "name": "persistSession", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 9, "character": 16 } ], "type": { "type": "intrinsic", "name": "boolean" }, "defaultValue": "true" }, { "id": 327, "name": "url", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 7, "character": 5 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "GOTRUE_URL" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 328, 331, 332, 330, 329, 327 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 6, "character": 21 } ], "type": { "type": "intrinsic", "name": "object" } } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 195 ] }, { "title": "Object literals", "kind": 2097152, "children": [ 326 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 1, "character": 0 } ] }, { "id": 334, "name": "\"index\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", "children": [ { "id": 336, "name": "AuthChangeEvent", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 67 }, { "id": 335, "name": "Provider", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 66 }, { "id": 337, "name": "Session", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 27 }, { "id": 340, "name": "Subscription", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 56 }, { "id": 338, "name": "User", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 33 }, { "id": 339, "name": "UserAttributes", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 51 } ], "groups": [ { "title": "References", "kind": 16777216, "children": [ 336, 335, 337, 340, 338, 339 ] } ], "sources": [ { "fileName": "index.ts", "line": 1, "character": 0 } ] }, { "id": 187, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", "children": [ { "id": 189, "name": "AUDIENCE", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 2, "character": 21 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "process.env.AUDIENCE || ''" }, { "id": 190, "name": "DEFAULT_HEADERS", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 3, "character": 28 } ], "type": { "type": "reflection", "declaration": { "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true } } } }, { "id": 192, "name": "EXPIRY_MARGIN", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 4, "character": 26 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "number" } ] }, "defaultValue": "process.env.EXPIRY_MARGIN || 60 * 1000" }, { "id": 188, "name": "GOTRUE_URL", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 1, "character": 23 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "process.env.GOTRUE_URL || 'http://localhost:9999'" }, { "id": 193, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 5, "character": 24 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "process.env.STORAGE_KEY || 'supabase.auth.token'" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 189, 190, 192, 188, 193 ] } ], "sources": [ { "fileName": "lib/constants.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": 12, "name": "get", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 13, "name": "get", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 14, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 15, "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": 22, "character": 25 } ] }, { "id": 8, "name": "handleError", "kind": 64, "kindString": "Function", "flags": { "isConst": true }, "signatures": [ { "id": 9, "name": "handleError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 10, "name": "error", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "any" } }, { "id": 11, "name": "reject", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "intrinsic", "name": "any" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 10, "character": 17 } ] }, { "id": 16, "name": "post", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 17, "name": "post", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 18, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 19, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "object" } }, { "id": 20, "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": 37, "character": 26 } ] }, { "id": 21, "name": "put", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 22, "name": "put", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 23, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 24, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "object" } }, { "id": 25, "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": 53, "character": 25 } ] } ], "groups": [ { "title": "Interfaces", "kind": 256, "children": [ 2 ] }, { "title": "Functions", "kind": 64, "children": [ 12, 8, 16, 21 ] } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 1, "character": 0 } ] }, { "id": 155, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", "children": [ { "id": 156, "name": "LocalStorage", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "indexSignature": [ { "id": 158, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 159, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "any" } } ], "children": [ { "id": 161, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 162, "name": "new LocalStorage", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 163, "name": "localStorage", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "name": "Storage" } } ], "type": { "type": "reference", "id": 156, "name": "LocalStorage" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 24, "character": 17 } ] }, { "id": 160, "name": "length", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/helpers.ts", "line": 24, "character": 8 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 157, "name": "localStorage", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/helpers.ts", "line": 22, "character": 14 } ], "type": { "type": "reference", "name": "Storage" } }, { "id": 164, "name": "clear", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 165, "name": "clear", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 28, "character": 7 } ] }, { "id": 173, "name": "getItem", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 174, "name": "getItem", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 175, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 37, "character": 9 } ] }, { "id": 166, "name": "key", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 167, "name": "key", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 168, "name": "index", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 31, "character": 5 } ] }, { "id": 176, "name": "removeItem", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 177, "name": "removeItem", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 178, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 40, "character": 12 } ] }, { "id": 169, "name": "setItem", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 170, "name": "setItem", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 171, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 172, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 34, "character": 9 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 161 ] }, { "title": "Properties", "kind": 1024, "children": [ 160, 157 ] }, { "title": "Methods", "kind": 2048, "children": [ 164, 173, 166, 176, 169 ] } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 21, "character": 25 } ], "implementedTypes": [ { "type": "reference", "name": "Storage" } ] }, { "id": 183, "name": "getParameterByName", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 184, "name": "getParameterByName", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 185, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 186, "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": 11, "character": 34 } ] }, { "id": 181, "name": "isBrowser", "kind": 64, "kindString": "Function", "flags": { "isExported": true, "isConst": true }, "signatures": [ { "id": 182, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "boolean" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 9, "character": 22 } ] }, { "id": 179, "name": "uuid", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 180, "name": "uuid", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 1, "character": 20 } ] } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 156 ] }, { "title": "Functions", "kind": 64, "children": [ 183, 181, 179 ] } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 1, "character": 0 } ] }, { "id": 26, "name": "\"lib/types\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts", "children": [ { "id": 27, "name": "Session", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 28, "name": "access_token", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 6, "character": 14 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 29, "name": "expires_in", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 7, "character": 12 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 30, "name": "refresh_token", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 8, "character": 15 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 31, "name": "token_type", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 9, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 32, "name": "user", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 10, "character": 6 } ], "type": { "type": "reference", "id": 33, "name": "User" } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 28, 29, 30, 31, 32 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 5, "character": 24 } ] }, { "id": 56, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 58, "name": "callback", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "comment": { "shortText": "The function to call every time there is an event. eg: (eventName) => {}" }, "sources": [ { "fileName": "lib/types.ts", "line": 58, "character": 10 } ], "type": { "type": "reflection", "declaration": { "id": 59, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "signatures": [ { "id": 60, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 61, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 67, "name": "AuthChangeEvent" } }, { "id": 62, "name": "session", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "union", "types": [ { "type": "reference", "id": 27, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/types.ts", "line": 58, "character": 11 } ] } } }, { "id": 57, "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": 54, "character": 4 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 63, "name": "unsubscribe", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "comment": { "shortText": "Call this to remove the listener." }, "sources": [ { "fileName": "lib/types.ts", "line": 62, "character": 13 } ], "type": { "type": "reflection", "declaration": { "id": 64, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "signatures": [ { "id": 65, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/types.ts", "line": 62, "character": 14 } ] } } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 58, 57, 63 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 50, "character": 29 } ] }, { "id": 33, "name": "User", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 35, "name": "app_metadata", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 14, "character": 14 } ], "type": { "type": "reflection", "declaration": { "id": 36, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 38, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 39, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "any" } } ], "children": [ { "id": 37, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 15, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 37 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 14, "character": 15 } ] } } }, { "id": 44, "name": "aud", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 21, "character": 5 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 47, "name": "confirmed_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 24, "character": 14 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 46, "name": "created_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 23, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 45, "name": "email", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 22, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 34, "name": "id", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 13, "character": 4 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 48, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 25, "character": 17 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 49, "name": "role", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 26, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 50, "name": "updated_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 27, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 40, "name": "user_metadata", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 18, "character": 15 } ], "type": { "type": "reflection", "declaration": { "id": 41, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 42, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 43, "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": 18, "character": 16 } ] } } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 35, 44, 47, 46, 45, 34, 48, 49, 50, 40 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 12, "character": 21 } ] }, { "id": 51, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 55, "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": 47, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "object" } ] } }, { "id": 52, "name": "email", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The user's email." }, "sources": [ { "fileName": "lib/types.ts", "line": 34, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 54, "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": 42, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 53, "name": "password", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The user's password." }, "sources": [ { "fileName": "lib/types.ts", "line": 38, "character": 10 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 55, 52, 54, 53 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 30, "character": 31 } ] }, { "id": 67, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 3, "character": 27 } ], "type": { "type": "union", "types": [ { "type": "stringLiteral", "value": "SIGNED_IN" }, { "type": "stringLiteral", "value": "SIGNED_OUT" }, { "type": "stringLiteral", "value": "USER_UPDATED" } ] } }, { "id": 66, "name": "Provider", "kind": 4194304, "kindString": "Type alias", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 1, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "stringLiteral", "value": "bitbucket" }, { "type": "stringLiteral", "value": "github" }, { "type": "stringLiteral", "value": "gitlab" }, { "type": "stringLiteral", "value": "google" } ] } } ], "groups": [ { "title": "Interfaces", "kind": 256, "children": [ 27, 56, 33, 51 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ 67, 66 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 1, "character": 0 } ] } ], "groups": [ { "title": "Modules", "kind": 1, "children": [ 68, 194, 334, 187, 1, 155, 26 ] } ] }