{ "id": 0, "name": "@supabase/gotrue-js", "kind": 0, "flags": {}, "originalName": "", "children": [ { "id": 197, "name": "\"GoTrueApi\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", "children": [ { "id": 198, "name": "GoTrueApi", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 205, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 206, "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 207, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "originalName": "__0", "type": { "type": "reflection", "declaration": { "id": 208, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 214, "name": "cookieOptions", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 17, "character": 17 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "reference", "id": 92, "name": "CookieOptions" } ] } }, { "id": 210, "name": "headers", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 16, "character": 11 } ], "type": { "type": "reflection", "declaration": { "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 212, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 213, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ] } } }, { "id": 209, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 15, "character": 7 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"\"" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 214, 210, 209 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 14, "character": 14 } ] } } } ], "type": { "type": "reference", "id": 198, "name": "GoTrueApi" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 12, "character": 40 } ] }, { "id": 204, "name": "cookieOptions", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 12, "character": 25 } ], "type": { "type": "reference", "id": 92, "name": "CookieOptions" } }, { "id": 200, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 9, "character": 19 } ], "type": { "type": "reflection", "declaration": { "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 202, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 203, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 9, "character": 20 } ] } } }, { "id": 199, "name": "url", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 8, "character": 15 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 264, "name": "_createRequestHeaders", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 265, "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": 266, "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": 267, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true } } } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 166, "character": 31 } ] }, { "id": 295, "name": "deleteUser", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 296, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Delete an user." }, "parameters": [ { "id": 297, "name": "uid", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The user uid you want to remove." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 298, "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": [ { "type": "reflection", "declaration": { "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 301, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 254, "character": 38 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 302, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 254, "character": 58 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 300, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 254, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 301, 302, 300 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 254, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 251, "character": 18 } ] }, { "id": 273, "name": "getUrlForProvider", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 274, "name": "getUrlForProvider", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Generates the relevant login URL for a third-party provider." }, "parameters": [ { "id": 275, "name": "provider", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "One of the providers supported by GoTrue." }, "type": { "type": "reference", "id": 103, "name": "Provider" } }, { "id": 276, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 277, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 278, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 198, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 279, "name": "scopes", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 199, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 278, 279 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 197, "character": 12 } ] } } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 195, "character": 19 } ] }, { "id": 280, "name": "getUser", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 281, "name": "getUser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Gets the user details." }, "parameters": [ { "id": 282, "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": 283, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 285, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 218, "character": 38 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 286, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 218, "character": 58 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 284, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 218, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 285, 286, 284 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 218, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 216, "character": 15 } ] }, { "id": 313, "name": "getUserByCookie", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 314, "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": 315, "name": "req", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 318, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 322, "character": 38 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 319, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 322, "character": 58 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 317, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 322, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 318, 319, 317 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 322, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 320, "character": 23 } ] }, { "id": 245, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 246, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Sends an invite link to an email address." }, "parameters": [ { "id": 247, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 248, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 250, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 121, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 250 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 120, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 251, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 252, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 123, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 253, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 123, "character": 39 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 252, 253 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 123, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 118, "character": 25 } ] }, { "id": 303, "name": "refreshAccessToken", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 304, "name": "refreshAccessToken", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Generates a new JWT." }, "parameters": [ { "id": 305, "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": 306, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 307, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 275, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 308, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 275, "character": 42 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 307, 308 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 275, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 273, "character": 26 } ] }, { "id": 254, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 255, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Sends a reset request to an email address." }, "parameters": [ { "id": 256, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 257, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 258, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 259, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 145, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 259 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 144, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 260, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 261, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 147, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 262, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 147, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 263, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 147, "character": 37 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 261, 263 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 147, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 142, "character": 29 } ] }, { "id": 235, "name": "sendMagicLinkEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 236, "name": "sendMagicLinkEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Sends a magic login link to an email address." }, "parameters": [ { "id": 237, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 238, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 239, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 240, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 97, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 240 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 96, "character": 12 } ] } }, "defaultValue": "{}" } ], "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": 99, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 243, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 99, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 244, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 99, "character": 37 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 242, 244 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 99, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 94, "character": 26 } ] }, { "id": 309, "name": "setAuthCookie", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 310, "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": 311, "name": "req", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 312, "name": "res", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 294, "character": 15 } ] }, { "id": 225, "name": "signInWithEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 226, "name": "signInWithEmail", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Logs in an existing user using their email address." }, "parameters": [ { "id": 227, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 228, "name": "password", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The password of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 229, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 231, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 71, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 231 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 70, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { "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 }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 73, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 234, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 73, "character": 42 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 233, 234 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 73, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 67, "character": 23 } ] }, { "id": 268, "name": "signOut", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 269, "name": "signOut", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Removes a logged-in session." }, "parameters": [ { "id": 270, "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": 271, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 272, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 176, "character": 45 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 272 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 176, "character": 38 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 176, "character": 15 } ] }, { "id": 215, "name": "signUpWithEmail", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 216, "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": 217, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The email address of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 218, "name": "password", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The password of the user." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 219, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 220, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 221, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 43, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 221 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 42, "character": 12 } ] } }, "defaultValue": "{}" } ], "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": "GoTrueApi.ts", "line": 45, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 224, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 45, "character": 49 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 223, 224 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 45, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 39, "character": 23 } ] }, { "id": 287, "name": "updateUser", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 288, "name": "updateUser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Updates the user data." }, "parameters": [ { "id": 289, "name": "jwt", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "A valid, logged-in JWT." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 290, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The data you want to update.\n" }, "type": { "type": "reference", "id": 77, "name": "UserAttributes" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 291, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 293, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 235, "character": 38 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 294, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 235, "character": 58 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 292, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueApi.ts", "line": 235, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 293, 294, 292 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 235, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 232, "character": 18 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 205 ] }, { "title": "Properties", "kind": 1024, "children": [ 204, 200, 199 ] }, { "title": "Methods", "kind": 2048, "children": [ 264, 295, 273, 280, 313, 245, 303, 254, 235, 309, 225, 268, 215, 287 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 7, "character": 30 } ] } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 198 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", "line": 1, "character": 0 } ] }, { "id": 323, "name": "\"GoTrueClient\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts", "children": [ { "id": 324, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 333, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "comment": { "shortText": "Create a new client for use in the browser." }, "signatures": [ { "id": 334, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "comment": { "shortText": "Create a new client for use in the browser." }, "parameters": [ { "id": 335, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 336, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 343, "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": 60, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } }, { "id": 346, "name": "cookieOptions", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 63, "character": 17 } ], "type": { "type": "reference", "id": 92, "name": "CookieOptions" } }, { "id": 342, "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": 59, "character": 22 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } }, { "id": 338, "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": 58, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "reflection", "declaration": { "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 340, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 341, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ] } } ] } }, { "id": 345, "name": "localStorage", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "\n" }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 62, "character": 16 } ], "type": { "type": "reference", "name": "Storage" } }, { "id": 344, "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": 61, "character": 18 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } }, { "id": 337, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "The URL of the GoTrue server." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 57, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 343, 346, 342, 338, 345, 344, 337 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 56, "character": 22 } ] } } } ], "type": { "type": "reference", "id": 324, "name": "GoTrueClient" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 45, "character": 61 } ] }, { "id": 325, "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": 31, "character": 5 } ], "type": { "type": "reference", "id": 198, "name": "GoTrueApi" } }, { "id": 328, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 41, "character": 28 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 327, "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": 39, "character": 26 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 326, "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": 35, "character": 23 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 330, "name": "localStorage", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 43, "character": 24 } ], "type": { "type": "reference", "name": "Storage" } }, { "id": 329, "name": "persistSession", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 42, "character": 26 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 332, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 45, "character": 29 } ], "type": { "type": "reference", "typeArguments": [ { "type": "query", "queryType": { "type": "reference", "name": "setTimeout" } } ], "name": "ReturnType" } }, { "id": 331, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 44, "character": 31 } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "string" }, { "type": "reference", "id": 82, "name": "Subscription" } ], "name": "Map" }, "defaultValue": "new Map()" }, { "id": 468, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 469, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 470, "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": 471, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 472, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 532, "character": 19 } ], "type": { "type": "reference", "id": 50, "name": "Session" } }, { "id": 473, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 532, "character": 26 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 472, 473 ] } ] } }, { "type": "reflection", "declaration": { "id": 474, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 475, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 534, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 476, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 534, "character": 32 } ], "type": { "type": "intrinsic", "name": "any" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 475, 476 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 520, "character": 33 } ] }, { "id": 428, "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 429, "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 430, "name": "email", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 431, "name": "password", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 432, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 434, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 411, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 434 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 410, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 435, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 436, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 425, "character": 19 } ], "type": { "type": "reference", "id": 50, "name": "Session" } }, { "id": 439, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 425, "character": 58 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 438, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 425, "character": 45 } ], "type": { "type": "reference", "id": 50, "name": "Session" }, "defaultValue": "data" }, { "id": 437, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 425, "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": [ 436, 439, 438, 437 ] } ] } }, { "type": "reflection", "declaration": { "id": 440, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 441, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 427, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 444, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 427, "character": 59 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 443, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 427, "character": 46 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 442, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 427, "character": 31 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 441, 444, 443, 442 ] } ] } } ] } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 407, "character": 34 } ] }, { "id": 445, "name": "_handleProviderSignIn", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 446, "name": "_handleProviderSignIn", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 447, "name": "provider", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 103, "name": "Provider" } }, { "id": 448, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 450, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 434, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 451, "name": "scopes", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 435, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 450, 451 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 433, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 452, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 455, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 448, "character": 34 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 458, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 448, "character": 74 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 453, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 448, "character": 23 } ], "type": { "type": "reference", "id": 103, "name": "Provider" } }, { "id": 456, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 448, "character": 49 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 454, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 448, "character": 28 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 457, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 448, "character": 61 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 455, 458, 453, 456, 454, 457 ] } ] } }, { "type": "reflection", "declaration": { "id": 459, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 460, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 452, "character": 19 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 463, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 452, "character": 59 } ], "type": { "type": "intrinsic", "name": "any" } }, { "id": 462, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 452, "character": 46 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" }, { "id": 461, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 452, "character": 31 } ], "type": { "type": "intrinsic", "name": "null" }, "defaultValue": "null" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 460, 463, 462, 461 ] } ] } } ] } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 431, "character": 31 } ] }, { "id": 477, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 478, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 479, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 104, "name": "AuthChangeEvent" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 538, "character": 31 } ] }, { "id": 483, "name": "_persistSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 484, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 485, "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": 565, "character": 25 } ] }, { "id": 466, "name": "_recoverAndRefresh", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 467, "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": 484, "character": 34 } ] }, { "id": 464, "name": "_recoverSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 465, "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": 460, "character": 25 } ] }, { "id": 486, "name": "_removeSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 487, "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": 570, "character": 30 } ] }, { "id": 480, "name": "_saveSession", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 481, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" }, "parameters": [ { "id": 482, "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": 546, "character": 22 } ] }, { "id": 488, "name": "_startAutoRefreshToken", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 489, "name": "_startAutoRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Clear and re-create refresh token timer" }, "parameters": [ { "id": 490, "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": 581, "character": 32 } ] }, { "id": 406, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 407, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Gets the session data from a URL string" }, "parameters": [ { "id": 408, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "reflection", "declaration": { "id": 409, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 410, "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": 317, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 410 ] } ] } } ] } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 411, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 412, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 318, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 413, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 318, "character": 43 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 412, 413 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 318, "character": 14 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 316, "character": 25 } ] }, { "id": 418, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 419, "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": 420, "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "signatures": [ { "id": 422, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 423, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 104, "name": "AuthChangeEvent" } }, { "id": 424, "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": 388, "character": 13 } ] } } } ], "type": { "type": "reflection", "declaration": { "id": 425, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 426, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 389, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 82, "name": "Subscription" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 427, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 389, "character": 39 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 426, 427 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 389, "character": 4 } ] } } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 387, "character": 19 } ] }, { "id": 384, "name": "refreshSession", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 385, "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": 386, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 387, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 224, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 389, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 226, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 388, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 225, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 387, 389, 388 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 223, "character": 34 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 223, "character": 22 } ] }, { "id": 382, "name": "session", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 383, "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": 216, "character": 9 } ] }, { "id": 403, "name": "setAuth", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 404, "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": 405, "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": 301, "character": 9 } ] }, { "id": 397, "name": "setSession", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 398, "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": 399, "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": 400, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 402, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 273, "character": 45 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 401, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 273, "character": 22 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 402, 401 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 273, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 271, "character": 18 } ] }, { "id": 361, "name": "signIn", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 362, "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": 363, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "originalName": "__0", "type": { "type": "reflection", "declaration": { "id": 364, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 365, "name": "email", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "The user's email address." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 153, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 366, "name": "password", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "The user's password." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 153, "character": 21 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 368, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "One of the providers supported by GoTrue." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 153, "character": 45 } ], "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" } ] } }, { "id": 367, "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": 153, "character": 35 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 365, 366, 368, 367 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 152, "character": 15 } ] } } }, { "id": 369, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 370, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 371, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 155, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 372, "name": "scopes", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 156, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 371, 372 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 154, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 379, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 164, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 378, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 163, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 376, "name": "provider", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 161, "character": 12 } ], "type": { "type": "reference", "id": 103, "name": "Provider" } }, { "id": 374, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 159, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 377, "name": "url", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 162, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 375, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 160, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 379, 378, 376, 374, 377, 375 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 158, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 152, "character": 14 } ] }, { "id": 414, "name": "signOut", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 415, "name": "signOut", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Inside a browser context, `signOut()` will remove extract 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": 416, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 417, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 372, "character": 34 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 417 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 372, "character": 27 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 372, "character": 15 } ] }, { "id": 347, "name": "signUp", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 348, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Creates a new user." }, "parameters": [ { "id": 349, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "originalName": "__0", "type": { "type": "reflection", "declaration": { "id": 350, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 351, "name": "email", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "The user's email address." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 97, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 352, "name": "password", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "comment": { "text": "The user's password." }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 97, "character": 21 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 351, 352 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 96, "character": 15 } ] } } }, { "id": 353, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 354, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 355, "name": "redirectTo", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 99, "character": 16 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 355 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 98, "character": 12 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 360, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 105, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 359, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 104, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 358, "name": "session", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 103, "character": 11 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 50, "name": "Session" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 357, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 102, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 360, 359, 358, 357 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 101, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 96, "character": 14 } ] }, { "id": 390, "name": "update", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 391, "name": "update", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Updates user data, if there is a logged in user." }, "parameters": [ { "id": 392, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 77, "name": "UserAttributes" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 394, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 246, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 396, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 246, "character": 58 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 395, "name": "user", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "GoTrueClient.ts", "line": 246, "character": 38 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 394, 396, 395 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 246, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 244, "character": 14 } ] }, { "id": 380, "name": "user", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 381, "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": 209, "character": 6 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 333 ] }, { "title": "Properties", "kind": 1024, "children": [ 325, 328, 327, 326, 330, 329, 332, 331 ] }, { "title": "Methods", "kind": 2048, "children": [ 468, 428, 445, 477, 483, 466, 464, 486, 480, 488, 406, 418, 384, 382, 403, 397, 361, 414, 347, 390, 380 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 26, "character": 33 } ] }, { "id": 491, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", "flags": { "isConst": true }, "children": [ { "id": 493, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 20, "character": 18 } ], "type": { "type": "intrinsic", "name": "boolean" }, "defaultValue": "true" }, { "id": 496, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 23, "character": 20 } ], "type": { "type": "intrinsic", "name": "boolean" }, "defaultValue": "true" }, { "id": 497, "name": "headers", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 24, "character": 9 } ], "type": { "type": "reflection", "declaration": { "id": 498, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {} } }, "defaultValue": "DEFAULT_HEADERS" }, { "id": 495, "name": "localStorage", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 22, "character": 14 } ], "type": { "type": "reference", "name": "Storage" }, "defaultValue": "globalThis.localStorage" }, { "id": 494, "name": "persistSession", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 21, "character": 16 } ], "type": { "type": "intrinsic", "name": "boolean" }, "defaultValue": "true" }, { "id": 492, "name": "url", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "GoTrueClient.ts", "line": 19, "character": 5 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "GOTRUE_URL" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 493, 496, 497, 495, 494, 492 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 18, "character": 21 } ], "type": { "type": "intrinsic", "name": "object" } } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 324 ] }, { "title": "Object literals", "kind": 2097152, "children": [ 491 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", "line": 1, "character": 0 } ] }, { "id": 499, "name": "\"index\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", "children": [ { "id": 501, "name": "AuthChangeEvent", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 104 }, { "id": 506, "name": "CookieOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 92 }, { "id": 500, "name": "Provider", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 103 }, { "id": 502, "name": "Session", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 50 }, { "id": 505, "name": "Subscription", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 82 }, { "id": 503, "name": "User", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 58 }, { "id": 504, "name": "UserAttributes", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 77 }, { "id": 507, "name": "UserCredentials", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 98 } ], "groups": [ { "title": "References", "kind": 16777216, "children": [ 501, 506, 500, 502, 505, 503, 504, 507 ] } ], "sources": [ { "fileName": "index.ts", "line": 1, "character": 0 } ] }, { "id": 105, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", "children": [ { "id": 107, "name": "AUDIENCE", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 2, "character": 21 } ], "type": { "type": "stringLiteral", "value": "" }, "defaultValue": "\"\"" }, { "id": 108, "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": 109, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true } } } }, { "id": 110, "name": "EXPIRY_MARGIN", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 4, "character": 26 } ], "type": { "type": "intrinsic", "name": "number" }, "defaultValue": "60 * 1000" }, { "id": 106, "name": "GOTRUE_URL", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 1, "character": 23 } ], "type": { "type": "stringLiteral", "value": "http://localhost:9999" }, "defaultValue": "\"http://localhost:9999\"" }, { "id": 111, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", "flags": { "isExported": true, "isConst": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 5, "character": 24 } ], "type": { "type": "stringLiteral", "value": "supabase.auth.token" }, "defaultValue": "\"supabase.auth.token\"" }, { "id": 112, "name": "COOKIE_OPTIONS", "kind": 2097152, "kindString": "Object literal", "flags": { "isExported": true, "isConst": true }, "children": [ { "id": 115, "name": "domain", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 9, "character": 8 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"\"" }, { "id": 114, "name": "lifetime", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 8, "character": 10 } ], "type": { "type": "intrinsic", "name": "number" }, "defaultValue": "60 * 60 * 8" }, { "id": 113, "name": "name", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 7, "character": 6 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"sb:token\"" }, { "id": 116, "name": "path", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 10, "character": 6 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"/\"" }, { "id": 117, "name": "sameSite", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/constants.ts", "line": 11, "character": 10 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"lax\"" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 115, 114, 113, 116, 117 ] } ], "sources": [ { "fileName": "lib/constants.ts", "line": 6, "character": 27 } ], "type": { "type": "intrinsic", "name": "object" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 107, 108, 110, 106, 111 ] }, { "title": "Object literals", "kind": 2097152, "children": [ 112 ] } ], "sources": [ { "fileName": "lib/constants.ts", "line": 1, "character": 0 } ] }, { "id": 118, "name": "\"lib/cookies\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts", "children": [ { "id": 119, "name": "Cookie", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 1, "character": 11 } ], "type": { "type": "reflection", "declaration": { "id": 120, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 124, "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": 123, "name": "maxAge", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 4, "character": 8 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 121, "name": "name", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 2, "character": 6 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 125, "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": 126, "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": 122, "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": [ 124, 123, 121, 125, 126, 122 ] } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 1, "character": 13 } ] } } }, { "id": 157, "name": "deleteCookie", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 158, "name": "deleteCookie", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 159, "name": "req", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 160, "name": "res", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 161, "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": 164, "character": 28 } ] }, { "id": 140, "name": "isSecureEnvironment", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { "id": 141, "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": 142, "name": "req", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "intrinsic", "name": "boolean" } } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 112, "character": 28 } ] }, { "id": 127, "name": "serialize", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { "id": 128, "name": "serialize", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Serialize data into a cookie header." }, "parameters": [ { "id": 129, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 130, "name": "val", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 131, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reflection", "declaration": { "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 134, "name": "domain", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 18, "character": 10 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 136, "name": "expires", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 20, "character": 11 } ], "type": { "type": "reference", "name": "Date" } }, { "id": 137, "name": "httpOnly", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 21, "character": 12 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 133, "name": "maxAge", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 17, "character": 10 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 135, "name": "path", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 19, "character": 8 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 139, "name": "sameSite", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/cookies.ts", "line": 23, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 138, "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": [ 134, 136, 137, 133, 135, 139, 138 ] } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 16, "character": 10 } ] } } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 13, "character": 18 } ] }, { "id": 143, "name": "serializeCookie", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { "id": 144, "name": "serializeCookie", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Serialize a cookie to a string." }, "parameters": [ { "id": 145, "name": "cookie", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 119, "name": "Cookie" } }, { "id": 146, "name": "secure", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "boolean" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 129, "character": 24 } ] }, { "id": 152, "name": "setCookie", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 153, "name": "setCookie", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Set one or more cookies." }, "parameters": [ { "id": 154, "name": "req", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 155, "name": "res", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 156, "name": "cookie", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 119, "name": "Cookie" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 160, "character": 25 } ] }, { "id": 147, "name": "setCookies", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 148, "name": "setCookies", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Set one or more cookies." }, "parameters": [ { "id": 149, "name": "req", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 150, "name": "res", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "any" } }, { "id": 151, "name": "cookies", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", "id": 119, "name": "Cookie" } ], "name": "Array" } } ], "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/cookies.ts", "line": 144, "character": 26 } ] } ], "groups": [ { "title": "Type aliases", "kind": 4194304, "children": [ 119 ] }, { "title": "Functions", "kind": 64, "children": [ 157, 140, 127, 143, 152, 147 ] } ], "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": 162, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", "children": [ { "id": 163, "name": "LocalStorage", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "indexSignature": [ { "id": 165, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 166, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "any" } } ], "children": [ { "id": 168, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 169, "name": "new LocalStorage", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 170, "name": "localStorage", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "name": "Storage" } } ], "type": { "type": "reference", "id": 163, "name": "LocalStorage" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 29, "character": 17 } ] }, { "id": 167, "name": "length", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/helpers.ts", "line": 29, "character": 8 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 164, "name": "localStorage", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/helpers.ts", "line": 27, "character": 14 } ], "type": { "type": "reference", "name": "Storage" } }, { "id": 171, "name": "clear", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 172, "name": "clear", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 33, "character": 7 } ] }, { "id": 180, "name": "getItem", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 181, "name": "getItem", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 182, "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": 42, "character": 9 } ] }, { "id": 173, "name": "key", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 174, "name": "key", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 175, "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": 36, "character": 5 } ] }, { "id": 183, "name": "removeItem", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 184, "name": "removeItem", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 185, "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": 45, "character": 12 } ] }, { "id": 176, "name": "setItem", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 177, "name": "setItem", "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" } }, { "id": 179, "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": 39, "character": 9 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 168 ] }, { "title": "Properties", "kind": 1024, "children": [ 167, 164 ] }, { "title": "Methods", "kind": 2048, "children": [ 171, 180, 173, 183, 176 ] } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 26, "character": 25 } ], "implementedTypes": [ { "type": "reference", "name": "Storage" } ] }, { "id": 186, "name": "expiresAt", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 187, "name": "expiresAt", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 188, "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": 193, "name": "getParameterByName", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 194, "name": "getParameterByName", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 195, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 196, "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": 191, "name": "isBrowser", "kind": 64, "kindString": "Function", "flags": { "isExported": true, "isConst": true }, "signatures": [ { "id": 192, "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": 189, "name": "uuid", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 190, "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": "Classes", "kind": 128, "children": [ 163 ] }, { "title": "Functions", "kind": 64, "children": [ 186, 193, 191, 189 ] } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 1, "character": 0 } ] }, { "id": 320, "name": "\"lib/polyfills\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts", "children": [ { "id": 321, "name": "polyfillGlobalThis", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 322, "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": 6, "character": 34 } ] } ], "groups": [ { "title": "Functions", "kind": 64, "children": [ 321 ] } ], "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": 92, "name": "CookieOptions", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 95, "name": "domain", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 85, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 94, "name": "lifetime", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 83, "character": 10 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "number" } ] } }, { "id": 93, "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 81, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 96, "name": "path", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 86, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 97, "name": "sameSite", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 88, "character": 10 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 95, 94, 93, 96, 97 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 79, "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": 12, "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": 20, "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": 16, "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": 11, "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": 21, "character": 15 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 56, "name": "token_type", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 22, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 57, "name": "user", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 23, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "User" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 52, 54, 53, 51, 55, 56, 57 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 10, "character": 24 } ] }, { "id": 82, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 84, "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": 72, "character": 10 } ], "type": { "type": "reflection", "declaration": { "id": 85, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "signatures": [ { "id": 86, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 87, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reference", "id": 104, "name": "AuthChangeEvent" } }, { "id": 88, "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": "lib/types.ts", "line": 72, "character": 11 } ] } } }, { "id": 83, "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": 68, "character": 4 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 89, "name": "unsubscribe", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "comment": { "shortText": "Call this to remove the listener." }, "sources": [ { "fileName": "lib/types.ts", "line": 76, "character": 13 } ], "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 }, "type": { "type": "intrinsic", "name": "void" } } ], "sources": [ { "fileName": "lib/types.ts", "line": 76, "character": 14 } ] } } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 84, 83, 89 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 64, "character": 29 } ] }, { "id": 58, "name": "User", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 60, "name": "app_metadata", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 27, "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": 28, "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": 27, "character": 15 } ] } } }, { "id": 69, "name": "aud", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 34, "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": 35, "character": 22 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 73, "name": "confirmed_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 38, "character": 14 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 72, "name": "created_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 37, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 71, "name": "email", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 36, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 59, "name": "id", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 26, "character": 4 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 74, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 39, "character": 17 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 75, "name": "role", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 40, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 76, "name": "updated_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 41, "character": 12 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 65, "name": "user_metadata", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 31, "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" } } ], "sources": [ { "fileName": "lib/types.ts", "line": 31, "character": 16 } ] } } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 60, 69, 70, 73, 72, 71, 59, 74, 75, 76, 65 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 25, "character": 21 } ] }, { "id": 77, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 81, "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": 61, "character": 6 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "object" } ] } }, { "id": 78, "name": "email", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The user's email." }, "sources": [ { "fileName": "lib/types.ts", "line": 48, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 80, "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": 56, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 79, "name": "password", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The user's password." }, "sources": [ { "fileName": "lib/types.ts", "line": 52, "character": 10 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 81, 78, 80, 79 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 44, "character": 31 } ] }, { "id": 98, "name": "UserCredentials", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 99, "name": "email", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 92, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 100, "name": "password", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 93, "character": 10 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 102, "name": "provider", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 96, "character": 10 } ], "type": { "type": "reference", "id": 103, "name": "Provider" } }, { "id": 101, "name": "refreshToken", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 94, "character": 14 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 99, 100, 102, 101 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 91, "character": 32 } ] }, { "id": 104, "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" }, { "type": "stringLiteral", "value": "USER_DELETED" }, { "type": "stringLiteral", "value": "PASSWORD_RECOVERY" } ] } }, { "id": 103, "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": "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" } ] } } ], "groups": [ { "title": "Interfaces", "kind": 256, "children": [ 92, 50, 82, 58, 77, 98 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ 104, 103 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 1, "character": 0 } ] } ], "groups": [ { "title": "Modules", "kind": 1, "children": [ 197, 323, 499, 105, 118, 1, 162, 320, 49 ] } ] }