{
"id": 0,
"name": "@supabase/auth-js",
"variant": "project",
"kind": 1,
"flags": {},
"children": [
{
"id": 1676,
"name": "AuthApiError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error returned directly from the GoTrue REST API."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthApiError } from '@supabase/auth-js'\n\nthrow new AuthApiError('Invalid credentials', 400, 'invalid_credentials')\n```"
}
]
}
]
},
"children": [
{
"id": 1677,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 53,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L53"
}
],
"signatures": [
{
"id": 1678,
"name": "AuthApiError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 53,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L53"
}
],
"parameters": [
{
"id": 1679,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1680,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 1681,
"name": "code",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "intrinsic",
"name": "string"
}
]
}
}
],
"type": {
"type": "reference",
"target": 1676,
"name": "AuthApiError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1668,
"name": "AuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1667,
"name": "AuthError.constructor"
}
},
{
"id": 1683,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1684,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1672,
"name": "AuthError.code"
}
},
{
"id": 1682,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 51,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L51"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"overwrites": {
"type": "reference",
"target": 1674,
"name": "AuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1677]
},
{
"title": "Properties",
"children": [1683, 1682]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 50,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L50"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1666,
"name": "AuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1666,
"name": "AuthError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Base error thrown by Supabase Auth helpers."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthError } from '@supabase/auth-js'\n\nthrow new AuthError('Unexpected auth error', 500, 'unexpected')\n```"
}
]
}
]
},
"children": [
{
"id": 1667,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 28,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L28"
}
],
"signatures": [
{
"id": 1668,
"name": "AuthError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 28,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L28"
}
],
"parameters": [
{
"id": 1669,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1670,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 1671,
"name": "code",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"target": 1666,
"name": "AuthError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": -1,
"name": "Error.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": -1,
"name": "Error.constructor"
}
},
{
"id": 1672,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1673,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
}
},
{
"id": 1674,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 24,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L24"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "intrinsic",
"name": "number"
}
]
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1667]
},
{
"title": "Properties",
"children": [1672, 1674]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 14,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L14"
}
],
"extendedTypes": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Error"
},
"name": "Error",
"package": "typescript"
}
],
"extendedBy": [
{
"type": "reference",
"target": 1676,
"name": "AuthApiError"
},
{
"type": "reference",
"target": 1686,
"name": "AuthUnknownError"
},
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError"
}
]
},
{
"id": 1733,
"name": "AuthImplicitGrantRedirectError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when implicit grant redirects contain an error."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthImplicitGrantRedirectError } from '@supabase/auth-js'\n\nthrow new AuthImplicitGrantRedirectError('OAuth redirect failed', {\n error: 'access_denied',\n code: 'oauth_error',\n})\n```"
}
]
}
]
},
"children": [
{
"id": 1734,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 177,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L177"
}
],
"signatures": [
{
"id": 1735,
"name": "AuthImplicitGrantRedirectError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 177,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L177"
}
],
"parameters": [
{
"id": 1736,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1737,
"name": "details",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 1738,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1740,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 177,
"character": 57,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L177"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1739,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 177,
"character": 42,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L177"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [1740, 1739]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 177,
"character": 40,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L177"
}
]
}
}
]
},
"defaultValue": "null"
}
],
"type": {
"type": "reference",
"target": 1733,
"name": "AuthImplicitGrantRedirectError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1757,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1758,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1741,
"name": "details",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 1742,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1744,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 28,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1743,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [1744, 1743]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
]
}
}
]
},
"defaultValue": "null"
},
{
"id": 1755,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1756,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
},
{
"id": 1745,
"name": "toJSON",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 182,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L182"
}
],
"signatures": [
{
"id": 1746,
"name": "toJSON",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 182,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L182"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 1747,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1751,
"name": "details",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 187,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L187"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 1752,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1754,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 28,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1753,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [1754, 1753]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 176,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L176"
}
]
}
}
]
},
"defaultValue": "..."
},
{
"id": 1749,
"name": "message",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 185,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L185"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "..."
},
{
"id": 1748,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 184,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L184"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "..."
},
{
"id": 1750,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 186,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L186"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"defaultValue": "..."
}
],
"groups": [
{
"title": "Properties",
"children": [1751, 1749, 1748, 1750]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 183,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L183"
}
]
}
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"children": [1734]
},
{
"title": "Properties",
"children": [1757, 1741, 1755, 1756]
},
{
"title": "Methods",
"children": [1745]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 175,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L175"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1724,
"name": "AuthInvalidCredentialsError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when email/password credentials are invalid."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthInvalidCredentialsError } from '@supabase/auth-js'\n\nthrow new AuthInvalidCredentialsError('Email or password is incorrect')\n```"
}
]
}
]
},
"children": [
{
"id": 1725,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 157,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L157"
}
],
"signatures": [
{
"id": 1726,
"name": "AuthInvalidCredentialsError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 157,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L157"
}
],
"parameters": [
{
"id": 1727,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"target": 1724,
"name": "AuthInvalidCredentialsError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1730,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1731,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1728,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1729,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1725]
},
{
"title": "Properties",
"children": [1730, 1728, 1729]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 156,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L156"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1817,
"name": "AuthInvalidJwtError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when a JWT cannot be verified or parsed."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthInvalidJwtError } from '@supabase/auth-js'\n\nthrow new AuthInvalidJwtError('Token signature is invalid')\n```"
}
]
}
]
},
"children": [
{
"id": 1818,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 321,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L321"
}
],
"signatures": [
{
"id": 1819,
"name": "AuthInvalidJwtError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 321,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L321"
}
],
"parameters": [
{
"id": 1820,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"target": 1817,
"name": "AuthInvalidJwtError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1823,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1824,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1821,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1822,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1818]
},
{
"title": "Properties",
"children": [1823, 1821, 1822]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 320,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L320"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1716,
"name": "AuthInvalidTokenResponseError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when the token response is malformed."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthInvalidTokenResponseError } from '@supabase/auth-js'\n\nthrow new AuthInvalidTokenResponseError()\n```"
}
]
}
]
},
"children": [
{
"id": 1717,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 141,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L141"
}
],
"signatures": [
{
"id": 1718,
"name": "AuthInvalidTokenResponseError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 141,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L141"
}
],
"type": {
"type": "reference",
"target": 1716,
"name": "AuthInvalidTokenResponseError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1721,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1722,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1719,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1720,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1717]
},
{
"title": "Properties",
"children": [1721, 1719, 1720]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 140,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L140"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1787,
"name": "AuthPKCECodeVerifierMissingError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when the PKCE code verifier is not found in storage.\nThis typically happens when the auth flow was initiated in a different\nbrowser, device, or the storage was cleared."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthPKCECodeVerifierMissingError } from '@supabase/auth-js'\n\nthrow new AuthPKCECodeVerifierMissingError()\n```"
}
]
}
]
},
"children": [
{
"id": 1788,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 239,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L239"
}
],
"signatures": [
{
"id": 1789,
"name": "AuthPKCECodeVerifierMissingError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 239,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L239"
}
],
"type": {
"type": "reference",
"target": 1787,
"name": "AuthPKCECodeVerifierMissingError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1792,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1793,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1790,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1791,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1788]
},
{
"title": "Properties",
"children": [1792, 1790, 1791]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 238,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L238"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1760,
"name": "AuthPKCEGrantCodeExchangeError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown during PKCE code exchanges."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthPKCEGrantCodeExchangeError } from '@supabase/auth-js'\n\nthrow new AuthPKCEGrantCodeExchangeError('PKCE exchange failed')\n```"
}
]
}
]
},
"children": [
{
"id": 1761,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 211,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L211"
}
],
"signatures": [
{
"id": 1762,
"name": "AuthPKCEGrantCodeExchangeError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 211,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L211"
}
],
"parameters": [
{
"id": 1763,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1764,
"name": "details",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 1765,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1767,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 211,
"character": 57,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L211"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1766,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 211,
"character": 42,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L211"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [1767, 1766]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 211,
"character": 40,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L211"
}
]
}
}
]
},
"defaultValue": "null"
}
],
"type": {
"type": "reference",
"target": 1760,
"name": "AuthPKCEGrantCodeExchangeError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1784,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1785,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1768,
"name": "details",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 1769,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1771,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 28,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1770,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [1771, 1770]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
]
}
}
]
},
"defaultValue": "null"
},
{
"id": 1782,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1783,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
},
{
"id": 1772,
"name": "toJSON",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 216,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L216"
}
],
"signatures": [
{
"id": 1773,
"name": "toJSON",
"variant": "signature",
"kind": 4096,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 216,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L216"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 1774,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1778,
"name": "details",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 221,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L221"
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 1779,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 1781,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 28,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1780,
"name": "error",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"children": [1781, 1780]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 209,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L209"
}
]
}
}
]
},
"defaultValue": "..."
},
{
"id": 1776,
"name": "message",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 219,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L219"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "..."
},
{
"id": 1775,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 218,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L218"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "..."
},
{
"id": 1777,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 220,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L220"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"defaultValue": "..."
}
],
"groups": [
{
"title": "Properties",
"children": [1778, 1776, 1775, 1777]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 217,
"character": 11,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L217"
}
]
}
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"children": [1761]
},
{
"title": "Properties",
"children": [1784, 1768, 1782, 1783]
},
{
"title": "Methods",
"children": [1772]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 208,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L208"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1795,
"name": "AuthRetryableFetchError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when a transient fetch issue occurs."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthRetryableFetchError } from '@supabase/auth-js'\n\nthrow new AuthRetryableFetchError('Service temporarily unavailable', 503)\n```"
}
]
}
]
},
"children": [
{
"id": 1796,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 269,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L269"
}
],
"signatures": [
{
"id": 1797,
"name": "AuthRetryableFetchError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 269,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L269"
}
],
"parameters": [
{
"id": 1798,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1799,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"type": {
"type": "reference",
"target": 1795,
"name": "AuthRetryableFetchError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1802,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1803,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1800,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1801,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1796]
},
{
"title": "Properties",
"children": [1802, 1800, 1801]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 268,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L268"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1708,
"name": "AuthSessionMissingError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when an operation requires a session but none is present."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthSessionMissingError } from '@supabase/auth-js'\n\nthrow new AuthSessionMissingError()\n```"
}
]
}
]
},
"children": [
{
"id": 1709,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 121,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L121"
}
],
"signatures": [
{
"id": 1710,
"name": "AuthSessionMissingError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 121,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L121"
}
],
"type": {
"type": "reference",
"target": 1708,
"name": "AuthSessionMissingError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1713,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1714,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1711,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1712,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1709]
},
{
"title": "Properties",
"children": [1713, 1711, 1712]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 120,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L120"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1686,
"name": "AuthUnknownError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Wraps non-standard errors so callers can inspect the root cause."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthUnknownError } from '@supabase/auth-js'\n\ntry {\n await someAuthCall()\n} catch (err) {\n throw new AuthUnknownError('Auth failed', err)\n}\n```"
}
]
}
]
},
"children": [
{
"id": 1687,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 82,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L82"
}
],
"signatures": [
{
"id": 1688,
"name": "AuthUnknownError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 82,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L82"
}
],
"parameters": [
{
"id": 1689,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1690,
"name": "originalError",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"target": 1686,
"name": "AuthUnknownError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1668,
"name": "AuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1667,
"name": "AuthError.constructor"
}
},
{
"id": 1692,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1693,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1672,
"name": "AuthError.code"
}
},
{
"id": 1691,
"name": "originalError",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 80,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L80"
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 1694,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 24,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L24"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "intrinsic",
"name": "number"
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1674,
"name": "AuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1687]
},
{
"title": "Properties",
"children": [1692, 1691, 1694]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 79,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L79"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1666,
"name": "AuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1805,
"name": "AuthWeakPasswordError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error thrown when a supplied password is considered weak."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { AuthWeakPasswordError } from '@supabase/auth-js'\n\nthrow new AuthWeakPasswordError('Password too short', 400, ['min_length'])\n```"
}
]
}
]
},
"children": [
{
"id": 1806,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 299,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L299"
}
],
"signatures": [
{
"id": 1807,
"name": "AuthWeakPasswordError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 299,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L299"
}
],
"parameters": [
{
"id": 1808,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1809,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 1810,
"name": "reasons",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "array",
"elementType": {
"type": "union",
"types": [
{
"type": "literal",
"value": "length"
},
{
"type": "literal",
"value": "characters"
},
{
"type": "literal",
"value": "pwned"
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 1805,
"name": "AuthWeakPasswordError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1698,
"name": "CustomAuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1697,
"name": "CustomAuthError.constructor"
}
},
{
"id": 1814,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1815,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1705,
"name": "CustomAuthError.code"
}
},
{
"id": 1812,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"target": 1703,
"name": "CustomAuthError.name"
}
},
{
"id": 1811,
"name": "reasons",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Reasons why the password is deemed weak."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 297,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L297"
}
],
"type": {
"type": "array",
"elementType": {
"type": "union",
"types": [
{
"type": "literal",
"value": "length"
},
{
"type": "literal",
"value": "characters"
},
{
"type": "literal",
"value": "pwned"
}
]
}
}
},
{
"id": 1813,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"target": 1704,
"name": "CustomAuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1806]
},
{
"title": "Properties",
"children": [1814, 1812, 1811, 1813]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 293,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L293"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
}
]
},
{
"id": 1696,
"name": "CustomAuthError",
"variant": "declaration",
"kind": 128,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Flexible error class used to create named auth errors at runtime."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { CustomAuthError } from '@supabase/auth-js'\n\nthrow new CustomAuthError('My custom auth error', 'MyAuthError', 400, 'custom_code')\n```"
}
]
}
]
},
"children": [
{
"id": 1697,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 103,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L103"
}
],
"signatures": [
{
"id": 1698,
"name": "CustomAuthError",
"variant": "signature",
"kind": 16384,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 103,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L103"
}
],
"parameters": [
{
"id": 1699,
"name": "message",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1700,
"name": "name",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 1701,
"name": "status",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 1702,
"name": "code",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "intrinsic",
"name": "string"
}
]
}
}
],
"type": {
"type": "reference",
"target": 1696,
"name": "CustomAuthError",
"package": "@supabase/auth-js"
},
"overwrites": {
"type": "reference",
"target": 1668,
"name": "AuthError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"target": 1667,
"name": "AuthError.constructor"
}
},
{
"id": 1705,
"name": "code",
"variant": "declaration",
"kind": 1024,
"flags": {
"isInherited": true
},
"comment": {
"summary": [
{
"kind": "text",
"text": "Error code associated with the error. Most errors coming from\nHTTP responses will have a code, though some errors that occur\nbefore a response is received will not have one present. In that\ncase "
},
{
"kind": "inline-tag",
"tag": "@link",
"text": "#status"
},
{
"kind": "text",
"text": " will also be undefined."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 21,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L21"
}
],
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "undefined"
},
{
"type": "reference",
"target": {
"sourceFileName": "src/lib/error-codes.ts",
"qualifiedName": "ErrorCode"
},
"name": "ErrorCode",
"package": "@supabase/auth-js"
},
{
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reflection",
"declaration": {
"id": 1706,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {}
}
}
]
}
]
},
"inheritedFrom": {
"type": "reference",
"target": 1672,
"name": "AuthError.code"
}
},
{
"id": 1703,
"name": "name",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 100,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L100"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"overwrites": {
"type": "reference",
"target": -1,
"name": "AuthError.name"
}
},
{
"id": 1704,
"name": "status",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "HTTP status code that caused the error."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 101,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L101"
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"overwrites": {
"type": "reference",
"target": 1674,
"name": "AuthError.status"
}
}
],
"groups": [
{
"title": "Constructors",
"children": [1697]
},
{
"title": "Properties",
"children": [1705, 1703, 1704]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/lib/errors.ts",
"line": 99,
"character": 13,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/lib/errors.ts#L99"
}
],
"extendedTypes": [
{
"type": "reference",
"target": 1666,
"name": "AuthError",
"package": "@supabase/auth-js"
}
],
"extendedBy": [
{
"type": "reference",
"target": 1708,
"name": "AuthSessionMissingError"
},
{
"type": "reference",
"target": 1716,
"name": "AuthInvalidTokenResponseError"
},
{
"type": "reference",
"target": 1724,
"name": "AuthInvalidCredentialsError"
},
{
"type": "reference",
"target": 1733,
"name": "AuthImplicitGrantRedirectError"
},
{
"type": "reference",
"target": 1760,
"name": "AuthPKCEGrantCodeExchangeError"
},
{
"type": "reference",
"target": 1787,
"name": "AuthPKCECodeVerifierMissingError"
},
{
"type": "reference",
"target": 1795,
"name": "AuthRetryableFetchError"
},
{
"type": "reference",
"target": 1805,
"name": "AuthWeakPasswordError"
},
{
"type": "reference",
"target": 1817,
"name": "AuthInvalidJwtError"
}
]
},
{
"id": 1,
"name": "GoTrueAdminApi",
"variant": "declaration",
"kind": 128,
"flags": {},
"children": [
{
"id": 2,
"name": "constructor",
"variant": "declaration",
"kind": 512,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 70,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L70"
}
],
"signatures": [
{
"id": 3,
"name": "GoTrueAdminApi",
"variant": "signature",
"kind": 16384,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates an admin API client that can be used to manage users and OAuth clients."
}
],
"blockTags": [
{
"tag": "@example",
"content": [
{
"kind": "code",
"text": "```ts\nimport { GoTrueAdminApi } from '@supabase/auth-js'\n\nconst admin = new GoTrueAdminApi({\n url: 'https://xyzcompany.supabase.co/auth/v1',\n headers: { Authorization: `Bearer ${process.env.SUPABASE_SERVICE_ROLE_KEY}` },\n})\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 70,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L70"
}
],
"parameters": [
{
"id": 4,
"name": "__namedParameters",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 5,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"children": [
{
"id": 11,
"name": "fetch",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 79,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L79"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 12,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "node_modules/typescript/lib/lib.dom.d.ts",
"line": 29329,
"character": 17
},
{
"fileName": "node_modules/@types/node/globals.d.ts",
"line": 289,
"character": 13
}
],
"signatures": [
{
"id": 13,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)"
}
]
},
"sources": [
{
"fileName": "node_modules/typescript/lib/lib.dom.d.ts",
"line": 29329,
"character": 17
}
],
"parameters": [
{
"id": 14,
"name": "input",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "URL"
},
"name": "URL",
"package": "typescript"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "RequestInfo"
},
"name": "RequestInfo",
"package": "typescript"
}
]
}
},
{
"id": 15,
"name": "init",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "RequestInit"
},
"name": "RequestInit",
"package": "typescript"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Response"
},
"name": "Response",
"package": "typescript"
}
],
"name": "Promise",
"package": "typescript"
}
},
{
"id": 16,
"name": "__type",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)"
}
]
},
"sources": [
{
"fileName": "node_modules/@types/node/globals.d.ts",
"line": 289,
"character": 13
}
],
"parameters": [
{
"id": 17,
"name": "input",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "URL"
},
"name": "URL",
"package": "typescript"
},
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Request"
},
"name": "Request",
"package": "typescript"
}
]
}
},
{
"id": 18,
"name": "init",
"variant": "param",
"kind": 32768,
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "RequestInit"
},
"name": "RequestInit",
"package": "typescript"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.dom.d.ts",
"qualifiedName": "Response"
},
"name": "Response",
"package": "typescript"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
}
}
},
{
"id": 7,
"name": "headers",
"variant": "declaration",
"kind": 1024,
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 76,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L76"
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 8,
"name": "__type",
"variant": "declaration",
"kind": 65536,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 76,
"character": 14,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L76"
}
],
"indexSignatures": [
{
"id": 9,
"name": "__index",
"variant": "signature",
"kind": 8192,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 77,
"character": 6,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L77"
}
],
"parameters": [
{
"id": 10,
"name": "key",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
]
}
},
"defaultValue": "{}"
},
{
"id": 6,
"name": "url",
"variant": "declaration",
"kind": 1024,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 75,
"character": 4,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L75"
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "''"
}
],
"groups": [
{
"title": "Properties",
"children": [11, 7, 6]
}
],
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 74,
"character": 5,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L74"
}
]
}
}
}
],
"type": {
"type": "reference",
"target": 1,
"name": "GoTrueAdminApi",
"package": "@supabase/auth-js",
"qualifiedName": "default"
}
}
]
},
{
"id": 21,
"name": "customProviders",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Contains all custom OIDC/OAuth provider administration methods."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 49,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L49"
}
],
"type": {
"type": "reference",
"target": 1573,
"name": "GoTrueAdminCustomProvidersApi",
"package": "@supabase/auth-js"
}
},
{
"id": 19,
"name": "mfa",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Contains all MFA administration methods."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 40,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L40"
}
],
"type": {
"type": "reference",
"target": 1329,
"name": "GoTrueAdminMFAApi",
"package": "@supabase/auth-js"
}
},
{
"id": 20,
"name": "oauth",
"variant": "declaration",
"kind": 1024,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Contains all OAuth client administration methods.\nOnly relevant when the OAuth 2.1 server is enabled in Supabase Auth."
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 46,
"character": 2,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L46"
}
],
"type": {
"type": "reference",
"target": 1458,
"name": "GoTrueAdminOAuthApi",
"package": "@supabase/auth-js"
}
},
{
"id": 52,
"name": "createUser",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 452,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L452"
}
],
"signatures": [
{
"id": 53,
"name": "createUser",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Creates a new user.\nThis function should only be called on a server. Never expose your "
},
{
"kind": "code",
"text": "`service_role`"
},
{
"kind": "text",
"text": " key in the browser."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Auth"
}
]
},
{
"tag": "@remarks",
"content": [
{
"kind": "text",
"text": "- To confirm the user's email address or phone number, set "
},
{
"kind": "code",
"text": "`email_confirm`"
},
{
"kind": "text",
"text": " or "
},
{
"kind": "code",
"text": "`phone_confirm`"
},
{
"kind": "text",
"text": " to true. Both arguments default to false.\n- "
},
{
"kind": "code",
"text": "`createUser()`"
},
{
"kind": "text",
"text": " will not send a confirmation email to the user. You can use ["
},
{
"kind": "code",
"text": "`inviteUserByEmail()`"
},
{
"kind": "text",
"text": "](/docs/reference/javascript/auth-admin-inviteuserbyemail) if you want to send them an email invite instead.\n- If you are sure that the created user's email or phone number is legitimate and verified, you can set the "
},
{
"kind": "code",
"text": "`email_confirm`"
},
{
"kind": "text",
"text": " or "
},
{
"kind": "code",
"text": "`phone_confirm`"
},
{
"kind": "text",
"text": " param to "
},
{
"kind": "code",
"text": "`true`"
},
{
"kind": "text",
"text": "."
}
]
},
{
"tag": "@example",
"name": "With custom user metadata",
"content": [
{
"kind": "code",
"text": "```js\nconst { data, error } = await supabase.auth.admin.createUser({\n email: 'user@email.com',\n password: 'password',\n user_metadata: { name: 'Yoda' }\n})\n```"
}
]
},
{
"tag": "@exampleResponse",
"content": [
{
"kind": "text",
"text": "With custom user metadata\n"
},
{
"kind": "code",
"text": "```json\n{\n data: {\n user: {\n id: '1',\n aud: 'authenticated',\n role: 'authenticated',\n email: 'example@email.com',\n email_confirmed_at: '2024-01-01T00:00:00Z',\n phone: '',\n confirmation_sent_at: '2024-01-01T00:00:00Z',\n confirmed_at: '2024-01-01T00:00:00Z',\n last_sign_in_at: '2024-01-01T00:00:00Z',\n app_metadata: {},\n user_metadata: {},\n identities: [\n {\n \"identity_id\": \"22222222-2222-2222-2222-222222222222\",\n \"id\": \"1\",\n \"user_id\": \"1\",\n \"identity_data\": {\n \"email\": \"example@email.com\",\n \"email_verified\": true,\n \"phone_verified\": false,\n \"sub\": \"1\"\n },\n \"provider\": \"email\",\n \"last_sign_in_at\": \"2024-01-01T00:00:00Z\",\n \"created_at\": \"2024-01-01T00:00:00Z\",\n \"updated_at\": \"2024-01-01T00:00:00Z\",\n \"email\": \"email@example.com\"\n },\n ],\n created_at: '2024-01-01T00:00:00Z',\n updated_at: '2024-01-01T00:00:00Z',\n is_anonymous: false,\n }\n }\n error: null\n}\n```"
}
]
},
{
"tag": "@example",
"name": "Auto-confirm the user's email",
"content": [
{
"kind": "code",
"text": "```js\nconst { data, error } = await supabase.auth.admin.createUser({\n email: 'user@email.com',\n email_confirm: true\n})\n```"
}
]
},
{
"tag": "@example",
"name": "Auto-confirm the user's phone number",
"content": [
{
"kind": "code",
"text": "```js\nconst { data, error } = await supabase.auth.admin.createUser({\n phone: '1234567890',\n phone_confirm: true\n})\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 452,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L452"
}
],
"parameters": [
{
"id": 54,
"name": "attributes",
"variant": "param",
"kind": 32768,
"flags": {},
"type": {
"type": "reference",
"target": 927,
"name": "AdminUserAttributes",
"package": "@supabase/auth-js"
}
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 844,
"name": "UserResponse",
"package": "@supabase/auth-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 76,
"name": "deleteUser",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 802,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L802"
}
],
"signatures": [
{
"id": 77,
"name": "deleteUser",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Delete a user. Requires a "
},
{
"kind": "code",
"text": "`service_role`"
},
{
"kind": "text",
"text": " key."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Auth"
}
]
},
{
"tag": "@remarks",
"content": [
{
"kind": "text",
"text": "- The "
},
{
"kind": "code",
"text": "`deleteUser()`"
},
{
"kind": "text",
"text": " method requires the user's ID, which maps to the "
},
{
"kind": "code",
"text": "`auth.users.id`"
},
{
"kind": "text",
"text": " column."
}
]
},
{
"tag": "@example",
"name": "Removes a user",
"content": [
{
"kind": "code",
"text": "```js\nconst { data, error } = await supabase.auth.admin.deleteUser(\n '715ed5db-f090-4b8c-a067-640ecee36aa0'\n)\n```"
}
]
},
{
"tag": "@exampleResponse",
"content": [
{
"kind": "text",
"text": "Removes a user\n"
},
{
"kind": "code",
"text": "```json\n{\n \"data\": {\n \"user\": {}\n },\n \"error\": null\n}\n```"
}
]
}
]
},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 802,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L802"
}
],
"parameters": [
{
"id": 78,
"name": "id",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "The user id you want to remove."
}
]
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 79,
"name": "shouldSoftDelete",
"variant": "param",
"kind": 32768,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "If true, then the user will be soft-deleted from the auth schema. Soft deletion allows user identification from the hashed user ID but is not reversible.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your "
},
{
"kind": "code",
"text": "`service_role`"
},
{
"kind": "text",
"text": " key in the browser."
}
]
},
"type": {
"type": "intrinsic",
"name": "boolean"
},
"defaultValue": "false"
}
],
"type": {
"type": "reference",
"target": {
"sourceFileName": "../../../node_modules/typescript/lib/lib.es5.d.ts",
"qualifiedName": "Promise"
},
"typeArguments": [
{
"type": "reference",
"target": 844,
"name": "UserResponse",
"package": "@supabase/auth-js"
}
],
"name": "Promise",
"package": "typescript"
}
}
]
},
{
"id": 49,
"name": "generateLink",
"variant": "declaration",
"kind": 2048,
"flags": {},
"sources": [
{
"fileName": "packages/core/auth-js/src/GoTrueAdminApi.ts",
"line": 343,
"character": 8,
"url": "https://github.com/supabase/supabase-js/blob/f26b924d3b21bcac1b2de68f16f9b2c611655432/packages/core/auth-js/src/GoTrueAdminApi.ts#L343"
}
],
"signatures": [
{
"id": 50,
"name": "generateLink",
"variant": "signature",
"kind": 4096,
"flags": {},
"comment": {
"summary": [
{
"kind": "text",
"text": "Generates email links and OTPs to be sent via a custom email provider."
}
],
"blockTags": [
{
"tag": "@category",
"content": [
{
"kind": "text",
"text": "Auth"
}
]
},
{
"tag": "@remarks",
"content": [
{
"kind": "text",
"text": "- The following types can be passed into "
},
{
"kind": "code",
"text": "`generateLink()`"
},
{
"kind": "text",
"text": ": "
},
{
"kind": "code",
"text": "`signup`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`magiclink`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`invite`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`recovery`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`email_change_current`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`email_change_new`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`phone_change`"
},
{
"kind": "text",
"text": ".\n- "
},
{
"kind": "code",
"text": "`generateLink()`"
},
{
"kind": "text",
"text": " only generates the email link for "
},
{
"kind": "code",
"text": "`email_change_email`"
},
{
"kind": "text",
"text": " if the **Secure email change** is enabled in your project's [email auth provider settings](/dashboard/project/_/auth/providers).\n- "
},
{
"kind": "code",
"text": "`generateLink()`"
},
{
"kind": "text",
"text": " handles the creation of the user for "
},
{
"kind": "code",
"text": "`signup`"
},
{
"kind": "text",
"text": ", "
},
{
"kind": "code",
"text": "`invite`"
},
{
"kind": "text",
"text": " and "
},
{
"kind": "code",
"text": "`magiclink`"
},
{
"kind": "text",
"text": "."
}
]
},
{
"tag": "@example",
"name": "Generate a signup link",
"content": [
{
"kind": "code",
"text": "```js\nconst { data, error } = await supabase.auth.admin.generateLink({\n type: 'signup',\n email: 'email@example.com',\n password: 'secret'\n})\n```"
}
]
},
{
"tag": "@exampleResponse",
"content": [
{
"kind": "text",
"text": "Generate a signup link\n"
},
{
"kind": "code",
"text": "```json\n{\n \"data\": {\n \"properties\": {\n \"action_link\": \" \n \n \n Guides\n ·\n Reference Docs\n ·\n TypeDoc\n
\n
\n Supabase Auth JS SDK
\n\n An isomorphic JavaScript SDK for the Supabase Auth API.
\n\n