Skip to content

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

docs: Adds some more notes about sessions and users depending on GoTrue config

Paul Copplestonea177fcd79f96
diff --git a/web/docusaurus.config.js b/web/docusaurus.config.js
index bef7fc7ca1c..dcfbdf89476 100755
--- a/web/docusaurus.config.js
+++ b/web/docusaurus.config.js
@@ -74,7 +74,7 @@ module.exports = {
position: 'left',
},
{
- label: 'API Reference',
+ label: 'Reference',
activeBasePath: '/docs/client/',
to: '/docs/client/supabase-client',
position: 'left',
diff --git a/web/spec/combined.json b/web/spec/combined.json
index e941c147f05..3eec47f2a43 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -5807,7 +5807,7 @@
"originalName": "",
"children": [
{
- "id": 153,
+ "id": 154,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -5817,7 +5817,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 154,
+ "id": 155,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -5826,7 +5826,7 @@
},
"children": [
{
- "id": 161,
+ "id": 162,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -5835,7 +5835,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 163,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -5844,7 +5844,7 @@
},
"parameters": [
{
- "id": 163,
+ "id": 164,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5855,7 +5855,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 164,
+ "id": 165,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5864,7 +5864,7 @@
},
"children": [
{
- "id": 170,
+ "id": 171,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -5887,14 +5887,14 @@
},
{
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "CookieOptions"
}
]
}
},
{
- "id": 166,
+ "id": 167,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -5911,7 +5911,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 167,
+ "id": 168,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5920,7 +5920,7 @@
},
"indexSignature": [
{
- "id": 168,
+ "id": 169,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -5929,7 +5929,7 @@
},
"parameters": [
{
- "id": 169,
+ "id": 170,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -5952,7 +5952,7 @@
}
},
{
- "id": 165,
+ "id": 166,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -5978,9 +5978,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 170,
- 166,
- 165
+ 171,
+ 167,
+ 166
]
}
],
@@ -5997,7 +5997,7 @@
],
"type": {
"type": "reference",
- "id": 154,
+ "id": 155,
"name": "GoTrueApi"
}
}
@@ -6011,7 +6011,7 @@
]
},
{
- "id": 160,
+ "id": 161,
"name": "cookieOptions",
"kind": 1024,
"kindString": "Property",
@@ -6028,12 +6028,12 @@
],
"type": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "CookieOptions"
}
},
{
- "id": 156,
+ "id": 157,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -6051,7 +6051,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 157,
+ "id": 158,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6060,7 +6060,7 @@
},
"indexSignature": [
{
- "id": 158,
+ "id": 159,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6069,7 +6069,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 160,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6099,7 +6099,7 @@
}
},
{
- "id": 155,
+ "id": 156,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -6120,7 +6120,7 @@
}
},
{
- "id": 206,
+ "id": 207,
"name": "_createRequestHeaders",
"kind": 2048,
"kindString": "Method",
@@ -6130,7 +6130,7 @@
},
"signatures": [
{
- "id": 207,
+ "id": 208,
"name": "_createRequestHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -6142,7 +6142,7 @@
},
"parameters": [
{
- "id": 208,
+ "id": 209,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -6161,7 +6161,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 209,
+ "id": 210,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6175,13 +6175,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 111,
+ "line": 114,
"character": 31
}
]
},
{
- "id": 215,
+ "id": 216,
"name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
@@ -6190,7 +6190,7 @@
},
"signatures": [
{
- "id": 216,
+ "id": 217,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -6202,7 +6202,7 @@
},
"parameters": [
{
- "id": 217,
+ "id": 218,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -6214,7 +6214,7 @@
},
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
}
@@ -6228,13 +6228,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 138,
+ "line": 141,
"character": 19
}
]
},
{
- "id": 218,
+ "id": 219,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -6243,7 +6243,7 @@
},
"signatures": [
{
- "id": 219,
+ "id": 220,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -6255,7 +6255,7 @@
},
"parameters": [
{
- "id": 220,
+ "id": 221,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -6277,7 +6277,7 @@
{
"type": "reflection",
"declaration": {
- "id": 221,
+ "id": 222,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6286,7 +6286,7 @@
},
"children": [
{
- "id": 223,
+ "id": 224,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6296,7 +6296,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 38
}
],
@@ -6316,7 +6316,7 @@
}
},
{
- "id": 224,
+ "id": 225,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6326,7 +6326,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 58
}
],
@@ -6345,7 +6345,7 @@
}
},
{
- "id": 222,
+ "id": 223,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -6355,7 +6355,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 19
}
],
@@ -6380,16 +6380,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
224,
- 222
+ 225,
+ 223
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 13
}
]
@@ -6403,13 +6403,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 146,
+ "line": 149,
"character": 15
}
]
},
{
- "id": 243,
+ "id": 244,
"name": "getUserByCookie",
"kind": 2048,
"kindString": "Method",
@@ -6418,7 +6418,7 @@
},
"signatures": [
{
- "id": 244,
+ "id": 245,
"name": "getUserByCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -6430,7 +6430,7 @@
},
"parameters": [
{
- "id": 245,
+ "id": 246,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -6449,7 +6449,7 @@
{
"type": "reflection",
"declaration": {
- "id": 246,
+ "id": 247,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6458,7 +6458,7 @@
},
"children": [
{
- "id": 248,
+ "id": 249,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6468,7 +6468,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 38
}
],
@@ -6488,7 +6488,7 @@
}
},
{
- "id": 249,
+ "id": 250,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6498,7 +6498,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 58
}
],
@@ -6517,7 +6517,7 @@
}
},
{
- "id": 247,
+ "id": 248,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -6527,7 +6527,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 19
}
],
@@ -6552,16 +6552,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 248,
249,
- 247
+ 250,
+ 248
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 13
}
]
@@ -6575,13 +6575,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 225,
+ "line": 228,
"character": 23
}
]
},
{
- "id": 192,
+ "id": 193,
"name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
@@ -6590,7 +6590,7 @@
},
"signatures": [
{
- "id": 193,
+ "id": 194,
"name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6602,7 +6602,7 @@
},
"parameters": [
{
- "id": 194,
+ "id": 195,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -6624,7 +6624,7 @@
{
"type": "reflection",
"declaration": {
- "id": 195,
+ "id": 196,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6633,7 +6633,7 @@
},
"children": [
{
- "id": 196,
+ "id": 197,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6643,7 +6643,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 56
}
],
@@ -6653,7 +6653,7 @@
{
"type": "reflection",
"declaration": {
- "id": 197,
+ "id": 198,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6663,7 +6663,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 57
}
]
@@ -6677,7 +6677,7 @@
}
},
{
- "id": 198,
+ "id": 199,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6687,7 +6687,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 74
}
],
@@ -6711,15 +6711,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 196,
- 198
+ 197,
+ 199
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 50
}
]
@@ -6733,13 +6733,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 25
}
]
},
{
- "id": 233,
+ "id": 234,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -6748,7 +6748,7 @@
},
"signatures": [
{
- "id": 234,
+ "id": 235,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -6760,7 +6760,7 @@
},
"parameters": [
{
- "id": 235,
+ "id": 236,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -6782,7 +6782,7 @@
{
"type": "reflection",
"declaration": {
- "id": 236,
+ "id": 237,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6791,7 +6791,7 @@
},
"children": [
{
- "id": 237,
+ "id": 238,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6801,7 +6801,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 182,
+ "line": 185,
"character": 19
}
],
@@ -6821,7 +6821,7 @@
}
},
{
- "id": 238,
+ "id": 239,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6831,7 +6831,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 182,
+ "line": 185,
"character": 42
}
],
@@ -6855,15 +6855,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 237,
- 238
+ 238,
+ 239
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 182,
+ "line": 185,
"character": 13
}
]
@@ -6877,13 +6877,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 180,
+ "line": 183,
"character": 26
}
]
},
{
- "id": 199,
+ "id": 200,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -6892,7 +6892,7 @@
},
"signatures": [
{
- "id": 200,
+ "id": 201,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6904,7 +6904,7 @@
},
"parameters": [
{
- "id": 201,
+ "id": 202,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -6926,7 +6926,7 @@
{
"type": "reflection",
"declaration": {
- "id": 202,
+ "id": 203,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6935,7 +6935,7 @@
},
"children": [
{
- "id": 203,
+ "id": 204,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6945,7 +6945,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 60
}
],
@@ -6955,7 +6955,7 @@
{
"type": "reflection",
"declaration": {
- "id": 204,
+ "id": 205,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6965,7 +6965,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 61
}
]
@@ -6979,7 +6979,7 @@
}
},
{
- "id": 205,
+ "id": 206,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6989,7 +6989,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 78
}
],
@@ -7013,15 +7013,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 203,
- 205
+ 204,
+ 206
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 54
}
]
@@ -7035,13 +7035,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 29
}
]
},
{
- "id": 185,
+ "id": 186,
"name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
@@ -7050,7 +7050,7 @@
},
"signatures": [
{
- "id": 186,
+ "id": 187,
"name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -7062,7 +7062,7 @@
},
"parameters": [
{
- "id": 187,
+ "id": 188,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -7084,7 +7084,7 @@
{
"type": "reflection",
"declaration": {
- "id": 188,
+ "id": 189,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7093,7 +7093,7 @@
},
"children": [
{
- "id": 189,
+ "id": 190,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7103,7 +7103,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 57
}
],
@@ -7113,7 +7113,7 @@
{
"type": "reflection",
"declaration": {
- "id": 190,
+ "id": 191,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7123,7 +7123,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 58
}
]
@@ -7137,7 +7137,7 @@
}
},
{
- "id": 191,
+ "id": 192,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7147,7 +7147,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 75
}
],
@@ -7171,15 +7171,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 189,
- 191
+ 190,
+ 192
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 51
}
]
@@ -7193,13 +7193,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 26
}
]
},
{
- "id": 239,
+ "id": 240,
"name": "setAuthCookie",
"kind": 2048,
"kindString": "Method",
@@ -7208,7 +7208,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 241,
"name": "setAuthCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7220,7 +7220,7 @@
},
"parameters": [
{
- "id": 241,
+ "id": 242,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7233,7 +7233,7 @@
}
},
{
- "id": 242,
+ "id": 243,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -7255,13 +7255,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 199,
+ "line": 202,
"character": 15
}
]
},
{
- "id": 178,
+ "id": 179,
"name": "signInWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -7270,7 +7270,7 @@
},
"signatures": [
{
- "id": 179,
+ "id": 180,
"name": "signInWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -7282,7 +7282,7 @@
},
"parameters": [
{
- "id": 180,
+ "id": 181,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -7298,7 +7298,7 @@
}
},
{
- "id": 181,
+ "id": 182,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -7320,7 +7320,7 @@
{
"type": "reflection",
"declaration": {
- "id": 182,
+ "id": 183,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7329,7 +7329,7 @@
},
"children": [
{
- "id": 183,
+ "id": 184,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7339,7 +7339,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 54,
+ "line": 57,
"character": 19
}
],
@@ -7359,7 +7359,7 @@
}
},
{
- "id": 184,
+ "id": 185,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7369,7 +7369,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 54,
+ "line": 57,
"character": 42
}
],
@@ -7393,15 +7393,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 183,
- 184
+ 184,
+ 185
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 54,
+ "line": 57,
"character": 13
}
]
@@ -7415,13 +7415,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 51,
+ "line": 54,
"character": 23
}
]
},
{
- "id": 210,
+ "id": 211,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -7430,7 +7430,7 @@
},
"signatures": [
{
- "id": 211,
+ "id": 212,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -7442,7 +7442,7 @@
},
"parameters": [
{
- "id": 212,
+ "id": 213,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -7464,7 +7464,7 @@
{
"type": "reflection",
"declaration": {
- "id": 213,
+ "id": 214,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7473,7 +7473,7 @@
},
"children": [
{
- "id": 214,
+ "id": 215,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7483,7 +7483,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 124,
"character": 45
}
],
@@ -7507,14 +7507,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 214
+ 215
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 124,
"character": 38
}
]
@@ -7528,13 +7528,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 124,
"character": 15
}
]
},
{
- "id": 171,
+ "id": 172,
"name": "signUpWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -7543,7 +7543,7 @@
},
"signatures": [
{
- "id": 172,
+ "id": 173,
"name": "signUpWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -7551,11 +7551,12 @@
"isExported": true
},
"comment": {
- "shortText": "Creates a new user using their email address."
+ "shortText": "Creates a new user using their email address.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
},
"parameters": [
{
- "id": 173,
+ "id": 174,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -7571,7 +7572,7 @@
}
},
{
- "id": 174,
+ "id": 175,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -7593,7 +7594,7 @@
{
"type": "reflection",
"declaration": {
- "id": 175,
+ "id": 176,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7602,7 +7603,7 @@
},
"children": [
{
- "id": 176,
+ "id": 177,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7612,7 +7613,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 37,
+ "line": 40,
"character": 19
}
],
@@ -7624,6 +7625,11 @@
"id": 45,
"name": "Session"
},
+ {
+ "type": "reference",
+ "id": 51,
+ "name": "User"
+ },
{
"type": "intrinsic",
"name": "null"
@@ -7632,7 +7638,7 @@
}
},
{
- "id": 177,
+ "id": 178,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7642,8 +7648,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 37,
- "character": 42
+ "line": 40,
+ "character": 49
}
],
"type": {
@@ -7666,15 +7672,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 176,
- 177
+ 177,
+ 178
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 37,
+ "line": 40,
"character": 13
}
]
@@ -7688,13 +7694,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 34,
+ "line": 37,
"character": 23
}
]
},
{
- "id": 225,
+ "id": 226,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -7703,7 +7709,7 @@
},
"signatures": [
{
- "id": 226,
+ "id": 227,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -7715,7 +7721,7 @@
},
"parameters": [
{
- "id": 227,
+ "id": 228,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -7731,7 +7737,7 @@
}
},
{
- "id": 228,
+ "id": 229,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -7743,7 +7749,7 @@
},
"type": {
"type": "reference",
- "id": 69,
+ "id": 70,
"name": "UserAttributes"
}
}
@@ -7754,7 +7760,7 @@
{
"type": "reflection",
"declaration": {
- "id": 229,
+ "id": 230,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7763,7 +7769,7 @@
},
"children": [
{
- "id": 231,
+ "id": 232,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7773,7 +7779,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 38
}
],
@@ -7793,7 +7799,7 @@
}
},
{
- "id": 232,
+ "id": 233,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7803,7 +7809,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 58
}
],
@@ -7822,7 +7828,7 @@
}
},
{
- "id": 230,
+ "id": 231,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -7832,7 +7838,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 19
}
],
@@ -7857,16 +7863,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 231,
232,
- 230
+ 233,
+ 231
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 13
}
]
@@ -7880,7 +7886,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 162,
+ "line": 165,
"character": 18
}
]
@@ -7891,35 +7897,35 @@
"title": "Constructors",
"kind": 512,
"children": [
- 161
+ 162
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 160,
- 156,
- 155
+ 161,
+ 157,
+ 156
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 206,
- 215,
- 218,
- 243,
- 192,
- 233,
- 199,
- 185,
- 239,
- 178,
- 210,
- 171,
- 225
+ 207,
+ 216,
+ 219,
+ 244,
+ 193,
+ 234,
+ 200,
+ 186,
+ 240,
+ 179,
+ 211,
+ 172,
+ 226
]
}
],
@@ -7937,7 +7943,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 154
+ 155
]
}
],
@@ -7950,7 +7956,7 @@
]
},
{
- "id": 285,
+ "id": 286,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -7960,7 +7966,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 286,
+ "id": 287,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -7969,7 +7975,7 @@
},
"children": [
{
- "id": 294,
+ "id": 295,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -7981,7 +7987,7 @@
},
"signatures": [
{
- "id": 295,
+ "id": 296,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -7993,7 +7999,7 @@
},
"parameters": [
{
- "id": 296,
+ "id": 297,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -8003,7 +8009,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 297,
+ "id": 298,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8012,7 +8018,7 @@
},
"children": [
{
- "id": 304,
+ "id": 305,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -8049,7 +8055,7 @@
}
},
{
- "id": 307,
+ "id": 308,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -8066,12 +8072,12 @@
],
"type": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "CookieOptions"
}
},
{
- "id": 303,
+ "id": 304,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -8108,7 +8114,7 @@
}
},
{
- "id": 299,
+ "id": 300,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -8136,7 +8142,7 @@
{
"type": "reflection",
"declaration": {
- "id": 300,
+ "id": 301,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8145,7 +8151,7 @@
},
"indexSignature": [
{
- "id": 301,
+ "id": 302,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -8154,7 +8160,7 @@
},
"parameters": [
{
- "id": 302,
+ "id": 303,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -8179,7 +8185,7 @@
}
},
{
- "id": 306,
+ "id": 307,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -8203,7 +8209,7 @@
}
},
{
- "id": 305,
+ "id": 306,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -8240,7 +8246,7 @@
}
},
{
- "id": 298,
+ "id": 299,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -8278,13 +8284,13 @@
"title": "Variables",
"kind": 32,
"children": [
+ 305,
+ 308,
304,
+ 300,
307,
- 303,
- 299,
306,
- 305,
- 298
+ 299
]
}
],
@@ -8301,7 +8307,7 @@
],
"type": {
"type": "reference",
- "id": 286,
+ "id": 287,
"name": "GoTrueClient"
}
}
@@ -8315,7 +8321,7 @@
]
},
{
- "id": 287,
+ "id": 288,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -8334,12 +8340,12 @@
],
"type": {
"type": "reference",
- "id": 154,
+ "id": 155,
"name": "GoTrueApi"
}
},
{
- "id": 290,
+ "id": 291,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -8360,7 +8366,7 @@
}
},
{
- "id": 289,
+ "id": 290,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -8394,7 +8400,7 @@
}
},
{
- "id": 288,
+ "id": 289,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -8428,7 +8434,7 @@
}
},
{
- "id": 292,
+ "id": 293,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -8449,7 +8455,7 @@
}
},
{
- "id": 291,
+ "id": 292,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -8470,7 +8476,7 @@
}
},
{
- "id": 293,
+ "id": 294,
"name": "stateChangeEmitters",
"kind": 1024,
"kindString": "Property",
@@ -8494,7 +8500,7 @@
},
{
"type": "reference",
- "id": 74,
+ "id": 75,
"name": "Subscription"
}
],
@@ -8503,7 +8509,7 @@
"defaultValue": "new Map()"
},
{
- "id": 406,
+ "id": 413,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -8513,7 +8519,7 @@
},
"signatures": [
{
- "id": 407,
+ "id": 414,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -8522,7 +8528,7 @@
},
"parameters": [
{
- "id": 408,
+ "id": 415,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -8554,7 +8560,7 @@
{
"type": "reflection",
"declaration": {
- "id": 409,
+ "id": 416,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8563,7 +8569,7 @@
},
"children": [
{
- "id": 410,
+ "id": 417,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8573,7 +8579,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 411,
+ "line": 438,
"character": 19
}
],
@@ -8584,7 +8590,7 @@
}
},
{
- "id": 411,
+ "id": 418,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8594,7 +8600,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 411,
+ "line": 438,
"character": 26
}
],
@@ -8610,8 +8616,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 410,
- 411
+ 417,
+ 418
]
}
]
@@ -8620,7 +8626,7 @@
{
"type": "reflection",
"declaration": {
- "id": 412,
+ "id": 419,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8629,7 +8635,7 @@
},
"children": [
{
- "id": 413,
+ "id": 420,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8639,7 +8645,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 413,
+ "line": 440,
"character": 19
}
],
@@ -8650,7 +8656,7 @@
"defaultValue": "null"
},
{
- "id": 414,
+ "id": 421,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8660,7 +8666,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 413,
+ "line": 440,
"character": 32
}
],
@@ -8675,8 +8681,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 413,
- 414
+ 420,
+ 421
]
}
]
@@ -8692,13 +8698,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 388,
+ "line": 415,
"character": 33
}
]
},
{
- "id": 370,
+ "id": 373,
"name": "_handleEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -8708,7 +8714,7 @@
},
"signatures": [
{
- "id": 371,
+ "id": 374,
"name": "_handleEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -8717,7 +8723,7 @@
},
"parameters": [
{
- "id": 372,
+ "id": 375,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -8730,7 +8736,7 @@
}
},
{
- "id": 373,
+ "id": 376,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -8752,7 +8758,7 @@
{
"type": "reflection",
"declaration": {
- "id": 374,
+ "id": 377,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8761,7 +8767,7 @@
},
"children": [
{
- "id": 375,
+ "id": 378,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8771,7 +8777,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 302,
+ "line": 329,
"character": 19
}
],
@@ -8782,7 +8788,7 @@
}
},
{
- "id": 377,
+ "id": 381,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8792,8 +8798,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 302,
- "character": 43
+ "line": 329,
+ "character": 58
}
],
"type": {
@@ -8803,7 +8809,29 @@
"defaultValue": "null"
},
{
- "id": 376,
+ "id": 380,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 329,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 45,
+ "name": "Session"
+ },
+ "defaultValue": "data"
+ },
+ {
+ "id": 379,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8813,7 +8841,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 302,
+ "line": 329,
"character": 25
}
],
@@ -8830,9 +8858,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 375,
- 377,
- 376
+ 378,
+ 381,
+ 380,
+ 379
]
}
]
@@ -8841,7 +8870,7 @@
{
"type": "reflection",
"declaration": {
- "id": 378,
+ "id": 382,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8850,7 +8879,7 @@
},
"children": [
{
- "id": 379,
+ "id": 383,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8860,7 +8889,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 304,
+ "line": 331,
"character": 19
}
],
@@ -8871,7 +8900,7 @@
"defaultValue": "null"
},
{
- "id": 381,
+ "id": 386,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8881,8 +8910,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 304,
- "character": 44
+ "line": 331,
+ "character": 59
}
],
"type": {
@@ -8891,7 +8920,28 @@
}
},
{
- "id": 380,
+ "id": 385,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 331,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 384,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8901,7 +8951,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 304,
+ "line": 331,
"character": 31
}
],
@@ -8917,9 +8967,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 379,
- 381,
- 380
+ 383,
+ 386,
+ 385,
+ 384
]
}
]
@@ -8935,13 +8986,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 292,
+ "line": 319,
"character": 34
}
]
},
{
- "id": 382,
+ "id": 387,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -8951,7 +9002,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 388,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -8960,7 +9011,7 @@
},
"parameters": [
{
- "id": 384,
+ "id": 389,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -8969,7 +9020,7 @@
},
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
}
@@ -8980,7 +9031,7 @@
{
"type": "reflection",
"declaration": {
- "id": 385,
+ "id": 390,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8989,7 +9040,7 @@
},
"children": [
{
- "id": 388,
+ "id": 393,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8999,7 +9050,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 343,
"character": 34
}
],
@@ -9010,7 +9061,7 @@
"defaultValue": "null"
},
{
- "id": 390,
+ "id": 396,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9020,8 +9071,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
- "character": 59
+ "line": 343,
+ "character": 74
}
],
"type": {
@@ -9031,7 +9082,7 @@
"defaultValue": "null"
},
{
- "id": 386,
+ "id": 391,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -9041,18 +9092,39 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 343,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
},
{
- "id": 387,
+ "id": 394,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 343,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 392,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -9062,7 +9134,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 343,
"character": 28
}
],
@@ -9072,7 +9144,7 @@
}
},
{
- "id": 389,
+ "id": 395,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -9082,8 +9154,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
- "character": 46
+ "line": 343,
+ "character": 61
}
],
"type": {
@@ -9098,11 +9170,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 388,
- 390,
- 386,
- 387,
- 389
+ 393,
+ 396,
+ 391,
+ 394,
+ 392,
+ 395
]
}
]
@@ -9111,7 +9184,7 @@
{
"type": "reflection",
"declaration": {
- "id": 391,
+ "id": 397,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9120,7 +9193,7 @@
},
"children": [
{
- "id": 392,
+ "id": 398,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9130,7 +9203,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 320,
+ "line": 347,
"character": 19
}
],
@@ -9141,7 +9214,7 @@
"defaultValue": "null"
},
{
- "id": 394,
+ "id": 401,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9151,8 +9224,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 320,
- "character": 44
+ "line": 347,
+ "character": 59
}
],
"type": {
@@ -9161,7 +9234,28 @@
}
},
{
- "id": 393,
+ "id": 400,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 347,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 399,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -9171,7 +9265,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 320,
+ "line": 347,
"character": 31
}
],
@@ -9187,9 +9281,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 392,
- 394,
- 393
+ 398,
+ 401,
+ 400,
+ 399
]
}
]
@@ -9202,13 +9297,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 308,
+ "line": 335,
"character": 31
}
]
},
{
- "id": 415,
+ "id": 422,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -9218,7 +9313,7 @@
},
"signatures": [
{
- "id": 416,
+ "id": 423,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -9227,7 +9322,7 @@
},
"parameters": [
{
- "id": 417,
+ "id": 424,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -9236,7 +9331,7 @@
},
"type": {
"type": "reference",
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent"
}
}
@@ -9250,13 +9345,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 417,
+ "line": 444,
"character": 31
}
]
},
{
- "id": 398,
+ "id": 405,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -9266,7 +9361,7 @@
},
"signatures": [
{
- "id": 399,
+ "id": 406,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9275,7 +9370,7 @@
},
"parameters": [
{
- "id": 400,
+ "id": 407,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -9289,7 +9384,7 @@
}
},
{
- "id": 401,
+ "id": 408,
"name": "secondsToExpiry",
"kind": 32768,
"kindString": "Parameter",
@@ -9311,13 +9406,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 338,
+ "line": 365,
"character": 25
}
]
},
{
- "id": 404,
+ "id": 411,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -9327,7 +9422,7 @@
},
"signatures": [
{
- "id": 405,
+ "id": 412,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9358,13 +9453,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 351,
+ "line": 378,
"character": 31
}
]
},
{
- "id": 402,
+ "id": 409,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -9374,7 +9469,7 @@
},
"signatures": [
{
- "id": 403,
+ "id": 410,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9396,13 +9491,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 345,
+ "line": 372,
"character": 30
}
]
},
{
- "id": 395,
+ "id": 402,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -9412,7 +9507,7 @@
},
"signatures": [
{
- "id": 396,
+ "id": 403,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9421,7 +9516,7 @@
},
"parameters": [
{
- "id": 397,
+ "id": 404,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -9444,13 +9539,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 324,
+ "line": 351,
"character": 22
}
]
},
{
- "id": 348,
+ "id": 351,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -9459,7 +9554,7 @@
},
"signatures": [
{
- "id": 349,
+ "id": 352,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -9471,7 +9566,7 @@
},
"parameters": [
{
- "id": 350,
+ "id": 353,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -9489,7 +9584,7 @@
{
"type": "reflection",
"declaration": {
- "id": 351,
+ "id": 354,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9498,7 +9593,7 @@
},
"children": [
{
- "id": 352,
+ "id": 355,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -9512,7 +9607,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 212,
+ "line": 236,
"character": 16
}
],
@@ -9540,7 +9635,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 352
+ 355
]
}
]
@@ -9556,7 +9651,7 @@
{
"type": "reflection",
"declaration": {
- "id": 353,
+ "id": 356,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9565,7 +9660,7 @@
},
"children": [
{
- "id": 354,
+ "id": 357,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9575,7 +9670,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 213,
+ "line": 237,
"character": 20
}
],
@@ -9595,7 +9690,7 @@
}
},
{
- "id": 355,
+ "id": 358,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9605,7 +9700,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 213,
+ "line": 237,
"character": 43
}
],
@@ -9629,15 +9724,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 354,
- 355
+ 357,
+ 358
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 213,
+ "line": 237,
"character": 14
}
]
@@ -9651,13 +9746,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 211,
+ "line": 235,
"character": 25
}
]
},
{
- "id": 360,
+ "id": 363,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -9666,7 +9761,7 @@
},
"signatures": [
{
- "id": 361,
+ "id": 364,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -9679,7 +9774,7 @@
},
"parameters": [
{
- "id": 362,
+ "id": 365,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -9689,7 +9784,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 363,
+ "id": 366,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9698,7 +9793,7 @@
},
"signatures": [
{
- "id": 364,
+ "id": 367,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -9707,7 +9802,7 @@
},
"parameters": [
{
- "id": 365,
+ "id": 368,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -9716,12 +9811,12 @@
},
"type": {
"type": "reference",
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent"
}
},
{
- "id": 366,
+ "id": 369,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -9753,7 +9848,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 300,
"character": 13
}
]
@@ -9764,7 +9859,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 367,
+ "id": 370,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9773,7 +9868,7 @@
},
"children": [
{
- "id": 368,
+ "id": 371,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9783,7 +9878,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 274,
+ "line": 301,
"character": 11
}
],
@@ -9792,7 +9887,7 @@
"types": [
{
"type": "reference",
- "id": 74,
+ "id": 75,
"name": "Subscription"
},
{
@@ -9803,7 +9898,7 @@
}
},
{
- "id": 369,
+ "id": 372,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9813,7 +9908,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 274,
+ "line": 301,
"character": 39
}
],
@@ -9837,15 +9932,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 368,
- 369
+ 371,
+ 372
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 274,
+ "line": 301,
"character": 4
}
]
@@ -9856,13 +9951,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 272,
+ "line": 299,
"character": 19
}
]
},
{
- "id": 335,
+ "id": 338,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -9871,7 +9966,7 @@
},
"signatures": [
{
- "id": 336,
+ "id": 339,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9887,7 +9982,7 @@
{
"type": "reflection",
"declaration": {
- "id": 337,
+ "id": 340,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9896,7 +9991,7 @@
},
"children": [
{
- "id": 338,
+ "id": 341,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9906,7 +10001,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 164,
+ "line": 188,
"character": 8
}
],
@@ -9926,7 +10021,7 @@
}
},
{
- "id": 340,
+ "id": 343,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9936,7 +10031,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 166,
+ "line": 190,
"character": 9
}
],
@@ -9955,7 +10050,7 @@
}
},
{
- "id": 339,
+ "id": 342,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -9965,7 +10060,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 165,
+ "line": 189,
"character": 8
}
],
@@ -9990,16 +10085,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 338,
- 340,
- 339
+ 341,
+ 343,
+ 342
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 163,
+ "line": 187,
"character": 34
}
]
@@ -10013,13 +10108,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 163,
+ "line": 187,
"character": 22
}
]
},
{
- "id": 333,
+ "id": 336,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -10028,7 +10123,7 @@
},
"signatures": [
{
- "id": 334,
+ "id": 337,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -10057,13 +10152,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 180,
"character": 9
}
]
},
{
- "id": 318,
+ "id": 320,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -10072,7 +10167,7 @@
},
"signatures": [
{
- "id": 319,
+ "id": 321,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -10084,7 +10179,7 @@
},
"parameters": [
{
- "id": 320,
+ "id": 322,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -10095,7 +10190,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 321,
+ "id": 323,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10104,7 +10199,7 @@
},
"children": [
{
- "id": 322,
+ "id": 324,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -10117,7 +10212,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 121,
+ "line": 142,
"character": 9
}
],
@@ -10136,7 +10231,7 @@
}
},
{
- "id": 323,
+ "id": 325,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -10149,7 +10244,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 122,
+ "line": 143,
"character": 12
}
],
@@ -10168,7 +10263,7 @@
}
},
{
- "id": 324,
+ "id": 326,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -10181,7 +10276,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 123,
+ "line": 144,
"character": 12
}
],
@@ -10225,16 +10320,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 322,
- 323,
- 324
+ 324,
+ 325,
+ 326
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 120,
+ "line": 141,
"character": 15
}
]
@@ -10248,7 +10343,7 @@
{
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 327,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10257,7 +10352,7 @@
},
"children": [
{
- "id": 326,
+ "id": 333,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10267,7 +10362,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 125,
+ "line": 151,
"character": 8
}
],
@@ -10287,7 +10382,7 @@
}
},
{
- "id": 330,
+ "id": 332,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10297,7 +10392,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 129,
+ "line": 150,
"character": 9
}
],
@@ -10316,7 +10411,7 @@
}
},
{
- "id": 328,
+ "id": 330,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -10327,18 +10422,48 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 127,
+ "line": 148,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
},
{
- "id": 329,
+ "id": 328,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 146,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 45,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 331,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -10349,7 +10474,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 128,
+ "line": 149,
"character": 7
}
],
@@ -10368,7 +10493,7 @@
}
},
{
- "id": 327,
+ "id": 329,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10378,7 +10503,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 126,
+ "line": 147,
"character": 8
}
],
@@ -10403,18 +10528,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 326,
+ 333,
+ 332,
330,
328,
- 329,
- 327
+ 331,
+ 329
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 124,
+ "line": 145,
"character": 31
}
]
@@ -10428,13 +10554,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 120,
+ "line": 141,
"character": 14
}
]
},
{
- "id": 356,
+ "id": 359,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -10443,7 +10569,7 @@
},
"signatures": [
{
- "id": 357,
+ "id": 360,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -10451,7 +10577,8 @@
"isExported": true
},
"comment": {
- "shortText": "Signs out the current user, if there is a logged in user."
+ "shortText": "Inside a browser context, `signOut()` will remove extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",
+ "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"
},
"type": {
"type": "reference",
@@ -10459,7 +10586,7 @@
{
"type": "reflection",
"declaration": {
- "id": 358,
+ "id": 361,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10468,7 +10595,7 @@
},
"children": [
{
- "id": 359,
+ "id": 362,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10478,7 +10605,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 285,
"character": 34
}
],
@@ -10502,14 +10629,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 359
+ 362
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 285,
"character": 27
}
]
@@ -10523,13 +10650,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 285,
"character": 15
}
]
},
{
- "id": 308,
+ "id": 309,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -10538,7 +10665,7 @@
},
"signatures": [
{
- "id": 309,
+ "id": 310,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -10550,7 +10677,7 @@
},
"parameters": [
{
- "id": 310,
+ "id": 311,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -10561,7 +10688,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 311,
+ "id": 312,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10570,7 +10697,7 @@
},
"children": [
{
- "id": 312,
+ "id": 313,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -10602,7 +10729,7 @@
}
},
{
- "id": 313,
+ "id": 314,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -10639,8 +10766,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 312,
- 313
+ 313,
+ 314
]
}
],
@@ -10661,7 +10788,7 @@
{
"type": "reflection",
"declaration": {
- "id": 314,
+ "id": 315,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10670,7 +10797,7 @@
},
"children": [
{
- "id": 315,
+ "id": 319,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10680,8 +10807,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
- "character": 37
+ "line": 99,
+ "character": 8
}
],
"type": {
@@ -10692,6 +10819,11 @@
"id": 45,
"name": "Session"
},
+ {
+ "type": "reference",
+ "id": 51,
+ "name": "User"
+ },
{
"type": "intrinsic",
"name": "null"
@@ -10700,7 +10832,7 @@
}
},
{
- "id": 317,
+ "id": 318,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10710,8 +10842,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
- "character": 79
+ "line": 98,
+ "character": 9
}
],
"type": {
@@ -10728,6 +10860,36 @@
]
}
},
+ {
+ "id": 317,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 97,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 45,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
{
"id": 316,
"name": "user",
@@ -10739,8 +10901,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
- "character": 59
+ "line": 96,
+ "character": 8
}
],
"type": {
@@ -10764,7 +10926,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 315,
+ 319,
+ 318,
317,
316
]
@@ -10793,7 +10956,7 @@
]
},
{
- "id": 341,
+ "id": 344,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -10802,7 +10965,7 @@
},
"signatures": [
{
- "id": 342,
+ "id": 345,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -10814,7 +10977,7 @@
},
"parameters": [
{
- "id": 343,
+ "id": 346,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -10823,7 +10986,7 @@
},
"type": {
"type": "reference",
- "id": 69,
+ "id": 70,
"name": "UserAttributes"
}
}
@@ -10834,7 +10997,7 @@
{
"type": "reflection",
"declaration": {
- "id": 344,
+ "id": 347,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10843,7 +11006,7 @@
},
"children": [
{
- "id": 345,
+ "id": 348,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10853,7 +11016,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 19
}
],
@@ -10873,7 +11036,7 @@
}
},
{
- "id": 347,
+ "id": 350,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10883,7 +11046,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 58
}
],
@@ -10902,7 +11065,7 @@
}
},
{
- "id": 346,
+ "id": 349,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10912,7 +11075,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 38
}
],
@@ -10937,16 +11100,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 345,
- 347,
- 346
+ 348,
+ 350,
+ 349
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 13
}
]
@@ -10960,13 +11123,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 186,
+ "line": 210,
"character": 14
}
]
},
{
- "id": 331,
+ "id": 334,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -10975,7 +11138,7 @@
},
"signatures": [
{
- "id": 332,
+ "id": 335,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -10983,7 +11146,8 @@
"isExported": true
},
"comment": {
- "shortText": "Returns the user data, if there is a logged in user."
+ "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.",
+ "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n"
},
"type": {
"type": "union",
@@ -11004,7 +11168,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 173,
"character": 6
}
]
@@ -11015,43 +11179,43 @@
"title": "Constructors",
"kind": 512,
"children": [
- 294
+ 295
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 287,
+ 288,
+ 291,
290,
289,
- 288,
+ 293,
292,
- 291,
- 293
+ 294
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 406,
- 370,
- 382,
- 415,
- 398,
- 404,
+ 413,
+ 373,
+ 387,
+ 422,
+ 405,
+ 411,
+ 409,
402,
- 395,
- 348,
- 360,
- 335,
- 333,
- 318,
- 356,
- 308,
- 341,
- 331
+ 351,
+ 363,
+ 338,
+ 336,
+ 320,
+ 359,
+ 309,
+ 344,
+ 334
]
}
],
@@ -11064,7 +11228,7 @@
]
},
{
- "id": 418,
+ "id": 425,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -11073,7 +11237,7 @@
},
"children": [
{
- "id": 420,
+ "id": 427,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -11092,7 +11256,7 @@
"defaultValue": "true"
},
{
- "id": 423,
+ "id": 430,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -11111,7 +11275,7 @@
"defaultValue": "true"
},
{
- "id": 424,
+ "id": 431,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -11126,7 +11290,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 425,
+ "id": 432,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11136,7 +11300,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 422,
+ "id": 429,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -11155,7 +11319,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 421,
+ "id": 428,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -11174,7 +11338,7 @@
"defaultValue": "true"
},
{
- "id": 419,
+ "id": 426,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -11198,12 +11362,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 420,
- 423,
- 424,
- 422,
- 421,
- 419
+ 427,
+ 430,
+ 431,
+ 429,
+ 428,
+ 426
]
}
],
@@ -11225,14 +11389,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 286
+ 287
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 418
+ 425
]
}
],
@@ -11245,7 +11409,7 @@
]
},
{
- "id": 426,
+ "id": 433,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -11255,37 +11419,37 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 428,
+ "id": 435,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 95
+ "target": 96
},
{
- "id": 433,
+ "id": 440,
"name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 84
+ "target": 85
},
{
- "id": 427,
+ "id": 434,
"name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 94
+ "target": 95
},
{
- "id": 429,
+ "id": 436,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
@@ -11295,17 +11459,17 @@
"target": 45
},
{
- "id": 432,
+ "id": 439,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 74
+ "target": 75
},
{
- "id": 430,
+ "id": 437,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
@@ -11315,24 +11479,24 @@
"target": 51
},
{
- "id": 431,
+ "id": 438,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 69
+ "target": 70
},
{
- "id": 434,
+ "id": 441,
"name": "UserCredentials",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 90
+ "target": 91
}
],
"groups": [
@@ -11340,14 +11504,14 @@
"title": "References",
"kind": 16777216,
"children": [
- 428,
- 433,
- 427,
- 429,
- 432,
- 430,
- 431,
- 434
+ 435,
+ 440,
+ 434,
+ 436,
+ 439,
+ 437,
+ 438,
+ 441
]
}
],
@@ -11360,7 +11524,7 @@
]
},
{
- "id": 96,
+ "id": 97,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -11370,7 +11534,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 98,
+ "id": 99,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -11392,7 +11556,7 @@
"defaultValue": "\"\""
},
{
- "id": 99,
+ "id": 100,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -11410,7 +11574,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 100,
+ "id": 101,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11421,7 +11585,7 @@
}
},
{
- "id": 101,
+ "id": 102,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -11443,7 +11607,7 @@
"defaultValue": "60 * 1000"
},
{
- "id": 97,
+ "id": 98,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -11465,7 +11629,7 @@
"defaultValue": "\"http://localhost:9999\""
},
{
- "id": 102,
+ "id": 103,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -11487,7 +11651,7 @@
"defaultValue": "\"supabase.auth.token\""
},
{
- "id": 103,
+ "id": 104,
"name": "COOKIE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -11497,7 +11661,7 @@
},
"children": [
{
- "id": 106,
+ "id": 107,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -11518,7 +11682,7 @@
"defaultValue": "\"\""
},
{
- "id": 105,
+ "id": 106,
"name": "lifetime",
"kind": 32,
"kindString": "Variable",
@@ -11539,7 +11703,7 @@
"defaultValue": "60 * 60 * 8"
},
{
- "id": 104,
+ "id": 105,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -11560,7 +11724,7 @@
"defaultValue": "\"sb:token\""
},
{
- "id": 107,
+ "id": 108,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -11581,7 +11745,7 @@
"defaultValue": "\"/\""
},
{
- "id": 108,
+ "id": 109,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -11607,11 +11771,11 @@
"title": "Variables",
"kind": 32,
"children": [
+ 107,
106,
105,
- 104,
- 107,
- 108
+ 108,
+ 109
]
}
],
@@ -11633,18 +11797,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 98,
99,
- 101,
- 97,
- 102
+ 100,
+ 102,
+ 98,
+ 103
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 103
+ 104
]
}
],
@@ -11657,7 +11821,7 @@
]
},
{
- "id": 109,
+ "id": 110,
"name": "\"lib/cookies\"",
"kind": 1,
"kindString": "Module",
@@ -11667,7 +11831,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
"children": [
{
- "id": 110,
+ "id": 111,
"name": "Cookie",
"kind": 4194304,
"kindString": "Type alias",
@@ -11682,14 +11846,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 111,
+ "id": 112,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 115,
+ "id": 116,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -11718,7 +11882,7 @@
}
},
{
- "id": 114,
+ "id": 115,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -11736,7 +11900,7 @@
}
},
{
- "id": 112,
+ "id": 113,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -11754,7 +11918,7 @@
}
},
{
- "id": 116,
+ "id": 117,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -11783,7 +11947,7 @@
}
},
{
- "id": 117,
+ "id": 118,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -11812,7 +11976,7 @@
}
},
{
- "id": 113,
+ "id": 114,
"name": "value",
"kind": 32,
"kindString": "Variable",
@@ -11835,12 +11999,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 115,
- 114,
- 112,
116,
+ 115,
+ 113,
117,
- 113
+ 118,
+ 114
]
}
],
@@ -11855,7 +12019,7 @@
}
},
{
- "id": 148,
+ "id": 149,
"name": "deleteCookie",
"kind": 64,
"kindString": "Function",
@@ -11864,7 +12028,7 @@
},
"signatures": [
{
- "id": 149,
+ "id": 150,
"name": "deleteCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -11873,7 +12037,7 @@
},
"parameters": [
{
- "id": 150,
+ "id": 151,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -11886,7 +12050,7 @@
}
},
{
- "id": 151,
+ "id": 152,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -11899,7 +12063,7 @@
}
},
{
- "id": 152,
+ "id": 153,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -11927,14 +12091,14 @@
]
},
{
- "id": 131,
+ "id": 132,
"name": "isSecureEnvironment",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 132,
+ "id": 133,
"name": "isSecureEnvironment",
"kind": 4096,
"kindString": "Call signature",
@@ -11944,7 +12108,7 @@
},
"parameters": [
{
- "id": 133,
+ "id": 134,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -11970,14 +12134,14 @@
]
},
{
- "id": 118,
+ "id": 119,
"name": "serialize",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 119,
+ "id": 120,
"name": "serialize",
"kind": 4096,
"kindString": "Call signature",
@@ -11987,7 +12151,7 @@
},
"parameters": [
{
- "id": 120,
+ "id": 121,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -11998,7 +12162,7 @@
}
},
{
- "id": 121,
+ "id": 122,
"name": "val",
"kind": 32768,
"kindString": "Parameter",
@@ -12009,7 +12173,7 @@
}
},
{
- "id": 122,
+ "id": 123,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -12017,14 +12181,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 123,
+ "id": 124,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 125,
+ "id": 126,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -12042,7 +12206,7 @@
}
},
{
- "id": 127,
+ "id": 128,
"name": "expires",
"kind": 32,
"kindString": "Variable",
@@ -12060,7 +12224,7 @@
}
},
{
- "id": 128,
+ "id": 129,
"name": "httpOnly",
"kind": 32,
"kindString": "Variable",
@@ -12078,7 +12242,7 @@
}
},
{
- "id": 124,
+ "id": 125,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -12096,7 +12260,7 @@
}
},
{
- "id": 126,
+ "id": 127,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -12114,7 +12278,7 @@
}
},
{
- "id": 130,
+ "id": 131,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -12132,7 +12296,7 @@
}
},
{
- "id": 129,
+ "id": 130,
"name": "secure",
"kind": 32,
"kindString": "Variable",
@@ -12155,13 +12319,13 @@
"title": "Variables",
"kind": 32,
"children": [
+ 126,
+ 128,
+ 129,
125,
127,
- 128,
- 124,
- 126,
- 130,
- 129
+ 131,
+ 130
]
}
],
@@ -12191,14 +12355,14 @@
]
},
{
- "id": 134,
+ "id": 135,
"name": "serializeCookie",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 135,
+ "id": 136,
"name": "serializeCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -12208,19 +12372,19 @@
},
"parameters": [
{
- "id": 136,
+ "id": 137,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 110,
+ "id": 111,
"name": "Cookie"
}
},
{
- "id": 137,
+ "id": 138,
"name": "secure",
"kind": 32768,
"kindString": "Parameter",
@@ -12246,7 +12410,7 @@
]
},
{
- "id": 143,
+ "id": 144,
"name": "setCookie",
"kind": 64,
"kindString": "Function",
@@ -12255,7 +12419,7 @@
},
"signatures": [
{
- "id": 144,
+ "id": 145,
"name": "setCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -12267,7 +12431,7 @@
},
"parameters": [
{
- "id": 145,
+ "id": 146,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -12280,7 +12444,7 @@
}
},
{
- "id": 146,
+ "id": 147,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -12293,7 +12457,7 @@
}
},
{
- "id": 147,
+ "id": 148,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
@@ -12302,7 +12466,7 @@
},
"type": {
"type": "reference",
- "id": 110,
+ "id": 111,
"name": "Cookie"
}
}
@@ -12322,7 +12486,7 @@
]
},
{
- "id": 138,
+ "id": 139,
"name": "setCookies",
"kind": 64,
"kindString": "Function",
@@ -12331,7 +12495,7 @@
},
"signatures": [
{
- "id": 139,
+ "id": 140,
"name": "setCookies",
"kind": 4096,
"kindString": "Call signature",
@@ -12343,7 +12507,7 @@
},
"parameters": [
{
- "id": 140,
+ "id": 141,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -12356,7 +12520,7 @@
}
},
{
- "id": 141,
+ "id": 142,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -12369,7 +12533,7 @@
}
},
{
- "id": 142,
+ "id": 143,
"name": "cookies",
"kind": 32768,
"kindString": "Parameter",
@@ -12381,7 +12545,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 110,
+ "id": 111,
"name": "Cookie"
}
],
@@ -12409,19 +12573,19 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 110
+ 111
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 148,
- 131,
- 118,
- 134,
- 143,
- 138
+ 149,
+ 132,
+ 119,
+ 135,
+ 144,
+ 139
]
}
],
@@ -12624,7 +12788,7 @@
"parameters": [
{
"id": 11,
- "name": "msg",
+ "name": "err",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
@@ -12754,7 +12918,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 24,
+ "line": 27,
"character": 23
}
]
@@ -12848,7 +13012,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 37,
+ "line": 40,
"character": 29
}
]
@@ -12915,7 +13079,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 55,
+ "line": 58,
"character": 25
}
]
@@ -13048,7 +13212,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 59,
+ "line": 62,
"character": 26
}
]
@@ -13128,7 +13292,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 63,
+ "line": 66,
"character": 25
}
]
@@ -13172,7 +13336,7 @@
]
},
{
- "id": 250,
+ "id": 251,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -13182,7 +13346,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 251,
+ "id": 252,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -13191,7 +13355,7 @@
},
"indexSignature": [
{
- "id": 253,
+ "id": 254,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -13200,7 +13364,7 @@
},
"parameters": [
{
- "id": 254,
+ "id": 255,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -13221,7 +13385,7 @@
],
"children": [
{
- "id": 256,
+ "id": 257,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -13230,7 +13394,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 258,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -13239,7 +13403,7 @@
},
"parameters": [
{
- "id": 258,
+ "id": 259,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -13254,7 +13418,7 @@
],
"type": {
"type": "reference",
- "id": 251,
+ "id": 252,
"name": "LocalStorage"
}
}
@@ -13268,7 +13432,7 @@
]
},
{
- "id": 255,
+ "id": 256,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -13288,7 +13452,7 @@
}
},
{
- "id": 252,
+ "id": 253,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -13308,7 +13472,7 @@
}
},
{
- "id": 259,
+ "id": 260,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -13317,7 +13481,7 @@
},
"signatures": [
{
- "id": 260,
+ "id": 261,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -13339,7 +13503,7 @@
]
},
{
- "id": 268,
+ "id": 269,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -13348,7 +13512,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 270,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -13357,7 +13521,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 271,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13394,7 +13558,7 @@
]
},
{
- "id": 261,
+ "id": 262,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -13403,7 +13567,7 @@
},
"signatures": [
{
- "id": 262,
+ "id": 263,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -13412,7 +13576,7 @@
},
"parameters": [
{
- "id": 263,
+ "id": 264,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -13449,7 +13613,7 @@
]
},
{
- "id": 271,
+ "id": 272,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -13458,7 +13622,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 273,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -13467,7 +13631,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 274,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13495,7 +13659,7 @@
]
},
{
- "id": 264,
+ "id": 265,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -13504,7 +13668,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 266,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -13513,7 +13677,7 @@
},
"parameters": [
{
- "id": 266,
+ "id": 267,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13526,7 +13690,7 @@
}
},
{
- "id": 267,
+ "id": 268,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -13559,26 +13723,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 256
+ 257
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 255,
- 252
+ 256,
+ 253
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 259,
- 268,
- 261,
- 271,
- 264
+ 260,
+ 269,
+ 262,
+ 272,
+ 265
]
}
],
@@ -13597,7 +13761,7 @@
]
},
{
- "id": 278,
+ "id": 279,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -13606,7 +13770,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 280,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -13615,7 +13779,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 281,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -13628,7 +13792,7 @@
}
},
{
- "id": 281,
+ "id": 282,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -13675,7 +13839,7 @@
]
},
{
- "id": 276,
+ "id": 277,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -13685,7 +13849,7 @@
},
"signatures": [
{
- "id": 277,
+ "id": 278,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -13707,7 +13871,7 @@
]
},
{
- "id": 274,
+ "id": 275,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -13716,7 +13880,7 @@
},
"signatures": [
{
- "id": 275,
+ "id": 276,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -13743,16 +13907,16 @@
"title": "Classes",
"kind": 128,
"children": [
- 251
+ 252
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 278,
- 276,
- 274
+ 279,
+ 277,
+ 275
]
}
],
@@ -13765,7 +13929,7 @@
]
},
{
- "id": 282,
+ "id": 283,
"name": "\"lib/polyfills\"",
"kind": 1,
"kindString": "Module",
@@ -13775,7 +13939,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",
"children": [
{
- "id": 283,
+ "id": 284,
"name": "polyfillGlobalThis",
"kind": 64,
"kindString": "Function",
@@ -13784,7 +13948,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 285,
"name": "polyfillGlobalThis",
"kind": 4096,
"kindString": "Call signature",
@@ -13814,7 +13978,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 283
+ 284
]
}
],
@@ -13837,7 +14001,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
{
- "id": 84,
+ "id": 85,
"name": "CookieOptions",
"kind": 256,
"kindString": "Interface",
@@ -13846,7 +14010,7 @@
},
"children": [
{
- "id": 87,
+ "id": 88,
"name": "domain",
"kind": 1024,
"kindString": "Property",
@@ -13857,7 +14021,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 71,
+ "line": 72,
"character": 8
}
],
@@ -13876,7 +14040,7 @@
}
},
{
- "id": 86,
+ "id": 87,
"name": "lifetime",
"kind": 1024,
"kindString": "Property",
@@ -13887,7 +14051,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 69,
+ "line": 70,
"character": 10
}
],
@@ -13906,7 +14070,7 @@
}
},
{
- "id": 85,
+ "id": 86,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13917,7 +14081,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 67,
+ "line": 68,
"character": 6
}
],
@@ -13936,7 +14100,7 @@
}
},
{
- "id": 88,
+ "id": 89,
"name": "path",
"kind": 1024,
"kindString": "Property",
@@ -13947,7 +14111,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 72,
+ "line": 73,
"character": 6
}
],
@@ -13966,7 +14130,7 @@
}
},
{
- "id": 89,
+ "id": 90,
"name": "sameSite",
"kind": 1024,
"kindString": "Property",
@@ -13977,7 +14141,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 74,
+ "line": 75,
"character": 10
}
],
@@ -14001,18 +14165,18 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 88,
87,
86,
- 85,
- 88,
- 89
+ 89,
+ 90
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 65,
+ "line": 66,
"character": 30
}
]
@@ -14150,7 +14314,7 @@
]
},
{
- "id": 74,
+ "id": 75,
"name": "Subscription",
"kind": 256,
"kindString": "Interface",
@@ -14159,7 +14323,7 @@
},
"children": [
{
- "id": 76,
+ "id": 77,
"name": "callback",
"kind": 1024,
"kindString": "Property",
@@ -14172,14 +14336,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 59,
"character": 10
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 77,
+ "id": 78,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14188,7 +14352,7 @@
},
"signatures": [
{
- "id": 78,
+ "id": 79,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -14197,7 +14361,7 @@
},
"parameters": [
{
- "id": 79,
+ "id": 80,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -14206,12 +14370,12 @@
},
"type": {
"type": "reference",
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent"
}
},
{
- "id": 80,
+ "id": 81,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -14243,7 +14407,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 59,
"character": 11
}
]
@@ -14251,7 +14415,7 @@
}
},
{
- "id": 75,
+ "id": 76,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -14264,7 +14428,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 54,
+ "line": 55,
"character": 4
}
],
@@ -14274,7 +14438,7 @@
}
},
{
- "id": 81,
+ "id": 82,
"name": "unsubscribe",
"kind": 1024,
"kindString": "Property",
@@ -14287,14 +14451,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 62,
+ "line": 63,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 82,
+ "id": 83,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14303,7 +14467,7 @@
},
"signatures": [
{
- "id": 83,
+ "id": 84,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -14319,7 +14483,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 62,
+ "line": 63,
"character": 14
}
]
@@ -14332,16 +14496,16 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 77,
76,
- 75,
- 81
+ 82
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 51,
"character": 29
}
]
@@ -14482,7 +14646,37 @@
}
},
{
- "id": 65,
+ "id": 63,
+ "name": "confirmation_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 22,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 66,
"name": "confirmed_at",
"kind": 1024,
"kindString": "Property",
@@ -14493,7 +14687,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 24,
+ "line": 25,
"character": 14
}
],
@@ -14512,7 +14706,7 @@
}
},
{
- "id": 64,
+ "id": 65,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -14522,7 +14716,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 23,
+ "line": 24,
"character": 12
}
],
@@ -14532,7 +14726,7 @@
}
},
{
- "id": 63,
+ "id": 64,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -14543,7 +14737,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 23,
"character": 7
}
],
@@ -14582,7 +14776,7 @@
}
},
{
- "id": 66,
+ "id": 67,
"name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
@@ -14593,7 +14787,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 25,
+ "line": 26,
"character": 17
}
],
@@ -14612,7 +14806,7 @@
}
},
{
- "id": 67,
+ "id": 68,
"name": "role",
"kind": 1024,
"kindString": "Property",
@@ -14623,7 +14817,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 27,
"character": 6
}
],
@@ -14642,7 +14836,7 @@
}
},
{
- "id": 68,
+ "id": 69,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -14653,7 +14847,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 27,
+ "line": 28,
"character": 12
}
],
@@ -14744,13 +14938,14 @@
"children": [
53,
62,
+ 63,
+ 66,
65,
64,
- 63,
52,
- 66,
67,
68,
+ 69,
58
]
}
@@ -14764,7 +14959,7 @@
]
},
{
- "id": 69,
+ "id": 70,
"name": "UserAttributes",
"kind": 256,
"kindString": "Interface",
@@ -14773,7 +14968,7 @@
},
"children": [
{
- "id": 73,
+ "id": 74,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -14787,7 +14982,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 47,
+ "line": 48,
"character": 6
}
],
@@ -14806,7 +15001,7 @@
}
},
{
- "id": 70,
+ "id": 71,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -14820,7 +15015,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 35,
"character": 7
}
],
@@ -14839,7 +15034,7 @@
}
},
{
- "id": 72,
+ "id": 73,
"name": "email_change_token",
"kind": 1024,
"kindString": "Property",
@@ -14853,7 +15048,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 42,
+ "line": 43,
"character": 20
}
],
@@ -14872,7 +15067,7 @@
}
},
{
- "id": 71,
+ "id": 72,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -14886,7 +15081,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 38,
+ "line": 39,
"character": 10
}
],
@@ -14910,23 +15105,23 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 74,
+ 71,
73,
- 70,
- 72,
- 71
+ 72
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 30,
+ "line": 31,
"character": 31
}
]
},
{
- "id": 90,
+ "id": 91,
"name": "UserCredentials",
"kind": 256,
"kindString": "Interface",
@@ -14935,7 +15130,7 @@
},
"children": [
{
- "id": 91,
+ "id": 92,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -14946,7 +15141,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 78,
+ "line": 79,
"character": 7
}
],
@@ -14965,7 +15160,7 @@
}
},
{
- "id": 92,
+ "id": 93,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -14976,7 +15171,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 79,
+ "line": 80,
"character": 10
}
],
@@ -14995,7 +15190,7 @@
}
},
{
- "id": 93,
+ "id": 94,
"name": "provider",
"kind": 1024,
"kindString": "Property",
@@ -15006,13 +15201,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 81,
+ "line": 82,
"character": 10
}
],
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
}
@@ -15022,22 +15217,22 @@
"title": "Properties",
"kind": 1024,
"children": [
- 91,
92,
- 93
+ 93,
+ 94
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 77,
+ "line": 78,
"character": 32
}
]
},
{
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -15074,7 +15269,7 @@
}
},
{
- "id": 94,
+ "id": 95,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -15124,20 +15319,20 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 84,
+ 85,
45,
- 74,
+ 75,
51,
- 69,
- 90
+ 70,
+ 91
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 95,
- 94
+ 96,
+ 95
]
}
],
@@ -15155,14 +15350,14 @@
"title": "Modules",
"kind": 1,
"children": [
- 153,
- 285,
- 426,
- 96,
- 109,
+ 154,
+ 286,
+ 433,
+ 97,
+ 110,
1,
- 250,
- 282,
+ 251,
+ 283,
44
]
}
diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json
index 2f7e85e60cf..474dc534979 100644
--- a/web/spec/gotrue.json
+++ b/web/spec/gotrue.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 153,
+ "id": 154,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 154,
+ "id": 155,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 161,
+ "id": 162,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34,7 +34,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 163,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -43,7 +43,7 @@
},
"parameters": [
{
- "id": 163,
+ "id": 164,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -54,7 +54,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 164,
+ "id": 165,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -63,7 +63,7 @@
},
"children": [
{
- "id": 170,
+ "id": 171,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -86,14 +86,14 @@
},
{
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "CookieOptions"
}
]
}
},
{
- "id": 166,
+ "id": 167,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -110,7 +110,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 167,
+ "id": 168,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -119,7 +119,7 @@
},
"indexSignature": [
{
- "id": 168,
+ "id": 169,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -128,7 +128,7 @@
},
"parameters": [
{
- "id": 169,
+ "id": 170,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -151,7 +151,7 @@
}
},
{
- "id": 165,
+ "id": 166,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -177,9 +177,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 170,
- 166,
- 165
+ 171,
+ 167,
+ 166
]
}
],
@@ -196,7 +196,7 @@
],
"type": {
"type": "reference",
- "id": 154,
+ "id": 155,
"name": "GoTrueApi"
}
}
@@ -210,7 +210,7 @@
]
},
{
- "id": 160,
+ "id": 161,
"name": "cookieOptions",
"kind": 1024,
"kindString": "Property",
@@ -227,12 +227,12 @@
],
"type": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "CookieOptions"
}
},
{
- "id": 156,
+ "id": 157,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -250,7 +250,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 157,
+ "id": 158,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -259,7 +259,7 @@
},
"indexSignature": [
{
- "id": 158,
+ "id": 159,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -268,7 +268,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 160,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -298,7 +298,7 @@
}
},
{
- "id": 155,
+ "id": 156,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -319,7 +319,7 @@
}
},
{
- "id": 206,
+ "id": 207,
"name": "_createRequestHeaders",
"kind": 2048,
"kindString": "Method",
@@ -329,7 +329,7 @@
},
"signatures": [
{
- "id": 207,
+ "id": 208,
"name": "_createRequestHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -341,7 +341,7 @@
},
"parameters": [
{
- "id": 208,
+ "id": 209,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -360,7 +360,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 209,
+ "id": 210,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -374,13 +374,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 111,
+ "line": 114,
"character": 31
}
]
},
{
- "id": 215,
+ "id": 216,
"name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
@@ -389,7 +389,7 @@
},
"signatures": [
{
- "id": 216,
+ "id": 217,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -401,7 +401,7 @@
},
"parameters": [
{
- "id": 217,
+ "id": 218,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -413,7 +413,7 @@
},
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
}
@@ -427,13 +427,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 138,
+ "line": 141,
"character": 19
}
]
},
{
- "id": 218,
+ "id": 219,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -442,7 +442,7 @@
},
"signatures": [
{
- "id": 219,
+ "id": 220,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -454,7 +454,7 @@
},
"parameters": [
{
- "id": 220,
+ "id": 221,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -476,7 +476,7 @@
{
"type": "reflection",
"declaration": {
- "id": 221,
+ "id": 222,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -485,7 +485,7 @@
},
"children": [
{
- "id": 223,
+ "id": 224,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -495,7 +495,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 38
}
],
@@ -515,7 +515,7 @@
}
},
{
- "id": 224,
+ "id": 225,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -525,7 +525,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 58
}
],
@@ -544,7 +544,7 @@
}
},
{
- "id": 222,
+ "id": 223,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -554,7 +554,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 19
}
],
@@ -579,16 +579,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
224,
- 222
+ 225,
+ 223
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 148,
+ "line": 151,
"character": 13
}
]
@@ -602,13 +602,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 146,
+ "line": 149,
"character": 15
}
]
},
{
- "id": 243,
+ "id": 244,
"name": "getUserByCookie",
"kind": 2048,
"kindString": "Method",
@@ -617,7 +617,7 @@
},
"signatures": [
{
- "id": 244,
+ "id": 245,
"name": "getUserByCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -629,7 +629,7 @@
},
"parameters": [
{
- "id": 245,
+ "id": 246,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -648,7 +648,7 @@
{
"type": "reflection",
"declaration": {
- "id": 246,
+ "id": 247,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -657,7 +657,7 @@
},
"children": [
{
- "id": 248,
+ "id": 249,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -667,7 +667,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 38
}
],
@@ -687,7 +687,7 @@
}
},
{
- "id": 249,
+ "id": 250,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -697,7 +697,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 58
}
],
@@ -716,7 +716,7 @@
}
},
{
- "id": 247,
+ "id": 248,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -726,7 +726,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 19
}
],
@@ -751,16 +751,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 248,
249,
- 247
+ 250,
+ 248
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 227,
+ "line": 230,
"character": 13
}
]
@@ -774,13 +774,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 225,
+ "line": 228,
"character": 23
}
]
},
{
- "id": 192,
+ "id": 193,
"name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
@@ -789,7 +789,7 @@
},
"signatures": [
{
- "id": 193,
+ "id": 194,
"name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -801,7 +801,7 @@
},
"parameters": [
{
- "id": 194,
+ "id": 195,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -823,7 +823,7 @@
{
"type": "reflection",
"declaration": {
- "id": 195,
+ "id": 196,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -832,7 +832,7 @@
},
"children": [
{
- "id": 196,
+ "id": 197,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -842,7 +842,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 56
}
],
@@ -852,7 +852,7 @@
{
"type": "reflection",
"declaration": {
- "id": 197,
+ "id": 198,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -862,7 +862,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 57
}
]
@@ -876,7 +876,7 @@
}
},
{
- "id": 198,
+ "id": 199,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -886,7 +886,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 74
}
],
@@ -910,15 +910,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 196,
- 198
+ 197,
+ 199
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 50
}
]
@@ -932,13 +932,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 84,
+ "line": 87,
"character": 25
}
]
},
{
- "id": 233,
+ "id": 234,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -947,7 +947,7 @@
},
"signatures": [
{
- "id": 234,
+ "id": 235,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -959,7 +959,7 @@
},
"parameters": [
{
- "id": 235,
+ "id": 236,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -981,7 +981,7 @@
{
"type": "reflection",
"declaration": {
- "id": 236,
+ "id": 237,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -990,7 +990,7 @@
},
"children": [
{
- "id": 237,
+ "id": 238,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1000,7 +1000,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 182,
+ "line": 185,
"character": 19
}
],
@@ -1020,7 +1020,7 @@
}
},
{
- "id": 238,
+ "id": 239,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1030,7 +1030,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 182,
+ "line": 185,
"character": 42
}
],
@@ -1054,15 +1054,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 237,
- 238
+ 238,
+ 239
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 182,
+ "line": 185,
"character": 13
}
]
@@ -1076,13 +1076,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 180,
+ "line": 183,
"character": 26
}
]
},
{
- "id": 199,
+ "id": 200,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -1091,7 +1091,7 @@
},
"signatures": [
{
- "id": 200,
+ "id": 201,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1103,7 +1103,7 @@
},
"parameters": [
{
- "id": 201,
+ "id": 202,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1125,7 +1125,7 @@
{
"type": "reflection",
"declaration": {
- "id": 202,
+ "id": 203,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1134,7 +1134,7 @@
},
"children": [
{
- "id": 203,
+ "id": 204,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1144,7 +1144,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 60
}
],
@@ -1154,7 +1154,7 @@
{
"type": "reflection",
"declaration": {
- "id": 204,
+ "id": 205,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1164,7 +1164,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 61
}
]
@@ -1178,7 +1178,7 @@
}
},
{
- "id": 205,
+ "id": 206,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1188,7 +1188,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 78
}
],
@@ -1212,15 +1212,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 203,
- 205
+ 204,
+ 206
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 54
}
]
@@ -1234,13 +1234,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
+ "line": 100,
"character": 29
}
]
},
{
- "id": 185,
+ "id": 186,
"name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
@@ -1249,7 +1249,7 @@
},
"signatures": [
{
- "id": 186,
+ "id": 187,
"name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1261,7 +1261,7 @@
},
"parameters": [
{
- "id": 187,
+ "id": 188,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1283,7 +1283,7 @@
{
"type": "reflection",
"declaration": {
- "id": 188,
+ "id": 189,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1292,7 +1292,7 @@
},
"children": [
{
- "id": 189,
+ "id": 190,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1302,7 +1302,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 57
}
],
@@ -1312,7 +1312,7 @@
{
"type": "reflection",
"declaration": {
- "id": 190,
+ "id": 191,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1322,7 +1322,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 58
}
]
@@ -1336,7 +1336,7 @@
}
},
{
- "id": 191,
+ "id": 192,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1346,7 +1346,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 75
}
],
@@ -1370,15 +1370,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 189,
- 191
+ 190,
+ 192
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 51
}
]
@@ -1392,13 +1392,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 74,
"character": 26
}
]
},
{
- "id": 239,
+ "id": 240,
"name": "setAuthCookie",
"kind": 2048,
"kindString": "Method",
@@ -1407,7 +1407,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 241,
"name": "setAuthCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -1419,7 +1419,7 @@
},
"parameters": [
{
- "id": 241,
+ "id": 242,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -1432,7 +1432,7 @@
}
},
{
- "id": 242,
+ "id": 243,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -1454,13 +1454,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 199,
+ "line": 202,
"character": 15
}
]
},
{
- "id": 178,
+ "id": 179,
"name": "signInWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -1469,7 +1469,7 @@
},
"signatures": [
{
- "id": 179,
+ "id": 180,
"name": "signInWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1481,7 +1481,7 @@
},
"parameters": [
{
- "id": 180,
+ "id": 181,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1497,7 +1497,7 @@
}
},
{
- "id": 181,
+ "id": 182,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -1519,7 +1519,7 @@
{
"type": "reflection",
"declaration": {
- "id": 182,
+ "id": 183,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1528,7 +1528,7 @@
},
"children": [
{
- "id": 183,
+ "id": 184,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1538,7 +1538,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 54,
+ "line": 57,
"character": 19
}
],
@@ -1558,7 +1558,7 @@
}
},
{
- "id": 184,
+ "id": 185,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1568,7 +1568,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 54,
+ "line": 57,
"character": 42
}
],
@@ -1592,15 +1592,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 183,
- 184
+ 184,
+ 185
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 54,
+ "line": 57,
"character": 13
}
]
@@ -1614,13 +1614,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 51,
+ "line": 54,
"character": 23
}
]
},
{
- "id": 210,
+ "id": 211,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -1629,7 +1629,7 @@
},
"signatures": [
{
- "id": 211,
+ "id": 212,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -1641,7 +1641,7 @@
},
"parameters": [
{
- "id": 212,
+ "id": 213,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -1663,7 +1663,7 @@
{
"type": "reflection",
"declaration": {
- "id": 213,
+ "id": 214,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1672,7 +1672,7 @@
},
"children": [
{
- "id": 214,
+ "id": 215,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1682,7 +1682,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 124,
"character": 45
}
],
@@ -1706,14 +1706,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 214
+ 215
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 124,
"character": 38
}
]
@@ -1727,13 +1727,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 124,
"character": 15
}
]
},
{
- "id": 171,
+ "id": 172,
"name": "signUpWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -1742,7 +1742,7 @@
},
"signatures": [
{
- "id": 172,
+ "id": 173,
"name": "signUpWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1750,11 +1750,12 @@
"isExported": true
},
"comment": {
- "shortText": "Creates a new user using their email address."
+ "shortText": "Creates a new user using their email address.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
},
"parameters": [
{
- "id": 173,
+ "id": 174,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1770,7 +1771,7 @@
}
},
{
- "id": 174,
+ "id": 175,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -1792,7 +1793,7 @@
{
"type": "reflection",
"declaration": {
- "id": 175,
+ "id": 176,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1801,7 +1802,7 @@
},
"children": [
{
- "id": 176,
+ "id": 177,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1811,7 +1812,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 37,
+ "line": 40,
"character": 19
}
],
@@ -1823,6 +1824,11 @@
"id": 45,
"name": "Session"
},
+ {
+ "type": "reference",
+ "id": 51,
+ "name": "User"
+ },
{
"type": "intrinsic",
"name": "null"
@@ -1831,7 +1837,7 @@
}
},
{
- "id": 177,
+ "id": 178,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1841,8 +1847,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 37,
- "character": 42
+ "line": 40,
+ "character": 49
}
],
"type": {
@@ -1865,15 +1871,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 176,
- 177
+ 177,
+ 178
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 37,
+ "line": 40,
"character": 13
}
]
@@ -1887,13 +1893,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 34,
+ "line": 37,
"character": 23
}
]
},
{
- "id": 225,
+ "id": 226,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -1902,7 +1908,7 @@
},
"signatures": [
{
- "id": 226,
+ "id": 227,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -1914,7 +1920,7 @@
},
"parameters": [
{
- "id": 227,
+ "id": 228,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -1930,7 +1936,7 @@
}
},
{
- "id": 228,
+ "id": 229,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -1942,7 +1948,7 @@
},
"type": {
"type": "reference",
- "id": 69,
+ "id": 70,
"name": "UserAttributes"
}
}
@@ -1953,7 +1959,7 @@
{
"type": "reflection",
"declaration": {
- "id": 229,
+ "id": 230,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1962,7 +1968,7 @@
},
"children": [
{
- "id": 231,
+ "id": 232,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1972,7 +1978,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 38
}
],
@@ -1992,7 +1998,7 @@
}
},
{
- "id": 232,
+ "id": 233,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2002,7 +2008,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 58
}
],
@@ -2021,7 +2027,7 @@
}
},
{
- "id": 230,
+ "id": 231,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2031,7 +2037,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 19
}
],
@@ -2056,16 +2062,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 231,
232,
- 230
+ 233,
+ 231
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 165,
+ "line": 168,
"character": 13
}
]
@@ -2079,7 +2085,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 162,
+ "line": 165,
"character": 18
}
]
@@ -2090,35 +2096,35 @@
"title": "Constructors",
"kind": 512,
"children": [
- 161
+ 162
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 160,
- 156,
- 155
+ 161,
+ 157,
+ 156
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 206,
- 215,
- 218,
- 243,
- 192,
- 233,
- 199,
- 185,
- 239,
- 178,
- 210,
- 171,
- 225
+ 207,
+ 216,
+ 219,
+ 244,
+ 193,
+ 234,
+ 200,
+ 186,
+ 240,
+ 179,
+ 211,
+ 172,
+ 226
]
}
],
@@ -2136,7 +2142,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 154
+ 155
]
}
],
@@ -2149,7 +2155,7 @@
]
},
{
- "id": 285,
+ "id": 286,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -2159,7 +2165,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 286,
+ "id": 287,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -2168,7 +2174,7 @@
},
"children": [
{
- "id": 294,
+ "id": 295,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -2180,7 +2186,7 @@
},
"signatures": [
{
- "id": 295,
+ "id": 296,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -2192,7 +2198,7 @@
},
"parameters": [
{
- "id": 296,
+ "id": 297,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2202,7 +2208,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 297,
+ "id": 298,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2211,7 +2217,7 @@
},
"children": [
{
- "id": 304,
+ "id": 305,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -2248,7 +2254,7 @@
}
},
{
- "id": 307,
+ "id": 308,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -2265,12 +2271,12 @@
],
"type": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "CookieOptions"
}
},
{
- "id": 303,
+ "id": 304,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -2307,7 +2313,7 @@
}
},
{
- "id": 299,
+ "id": 300,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -2335,7 +2341,7 @@
{
"type": "reflection",
"declaration": {
- "id": 300,
+ "id": 301,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2344,7 +2350,7 @@
},
"indexSignature": [
{
- "id": 301,
+ "id": 302,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -2353,7 +2359,7 @@
},
"parameters": [
{
- "id": 302,
+ "id": 303,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2378,7 +2384,7 @@
}
},
{
- "id": 306,
+ "id": 307,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -2402,7 +2408,7 @@
}
},
{
- "id": 305,
+ "id": 306,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -2439,7 +2445,7 @@
}
},
{
- "id": 298,
+ "id": 299,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -2477,13 +2483,13 @@
"title": "Variables",
"kind": 32,
"children": [
+ 305,
+ 308,
304,
+ 300,
307,
- 303,
- 299,
306,
- 305,
- 298
+ 299
]
}
],
@@ -2500,7 +2506,7 @@
],
"type": {
"type": "reference",
- "id": 286,
+ "id": 287,
"name": "GoTrueClient"
}
}
@@ -2514,7 +2520,7 @@
]
},
{
- "id": 287,
+ "id": 288,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -2533,12 +2539,12 @@
],
"type": {
"type": "reference",
- "id": 154,
+ "id": 155,
"name": "GoTrueApi"
}
},
{
- "id": 290,
+ "id": 291,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -2559,7 +2565,7 @@
}
},
{
- "id": 289,
+ "id": 290,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -2593,7 +2599,7 @@
}
},
{
- "id": 288,
+ "id": 289,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -2627,7 +2633,7 @@
}
},
{
- "id": 292,
+ "id": 293,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -2648,7 +2654,7 @@
}
},
{
- "id": 291,
+ "id": 292,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -2669,7 +2675,7 @@
}
},
{
- "id": 293,
+ "id": 294,
"name": "stateChangeEmitters",
"kind": 1024,
"kindString": "Property",
@@ -2693,7 +2699,7 @@
},
{
"type": "reference",
- "id": 74,
+ "id": 75,
"name": "Subscription"
}
],
@@ -2702,7 +2708,7 @@
"defaultValue": "new Map()"
},
{
- "id": 406,
+ "id": 413,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -2712,7 +2718,7 @@
},
"signatures": [
{
- "id": 407,
+ "id": 414,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -2721,7 +2727,7 @@
},
"parameters": [
{
- "id": 408,
+ "id": 415,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -2753,7 +2759,7 @@
{
"type": "reflection",
"declaration": {
- "id": 409,
+ "id": 416,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2762,7 +2768,7 @@
},
"children": [
{
- "id": 410,
+ "id": 417,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2772,7 +2778,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 411,
+ "line": 438,
"character": 19
}
],
@@ -2783,7 +2789,7 @@
}
},
{
- "id": 411,
+ "id": 418,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2793,7 +2799,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 411,
+ "line": 438,
"character": 26
}
],
@@ -2809,8 +2815,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 410,
- 411
+ 417,
+ 418
]
}
]
@@ -2819,7 +2825,7 @@
{
"type": "reflection",
"declaration": {
- "id": 412,
+ "id": 419,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2828,7 +2834,7 @@
},
"children": [
{
- "id": 413,
+ "id": 420,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2838,7 +2844,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 413,
+ "line": 440,
"character": 19
}
],
@@ -2849,7 +2855,7 @@
"defaultValue": "null"
},
{
- "id": 414,
+ "id": 421,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2859,7 +2865,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 413,
+ "line": 440,
"character": 32
}
],
@@ -2874,8 +2880,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 413,
- 414
+ 420,
+ 421
]
}
]
@@ -2891,13 +2897,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 388,
+ "line": 415,
"character": 33
}
]
},
{
- "id": 370,
+ "id": 373,
"name": "_handleEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -2907,7 +2913,7 @@
},
"signatures": [
{
- "id": 371,
+ "id": 374,
"name": "_handleEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2916,7 +2922,7 @@
},
"parameters": [
{
- "id": 372,
+ "id": 375,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -2929,7 +2935,7 @@
}
},
{
- "id": 373,
+ "id": 376,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -2951,7 +2957,7 @@
{
"type": "reflection",
"declaration": {
- "id": 374,
+ "id": 377,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2960,7 +2966,7 @@
},
"children": [
{
- "id": 375,
+ "id": 378,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2970,7 +2976,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 302,
+ "line": 329,
"character": 19
}
],
@@ -2981,7 +2987,7 @@
}
},
{
- "id": 377,
+ "id": 381,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2991,8 +2997,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 302,
- "character": 43
+ "line": 329,
+ "character": 58
}
],
"type": {
@@ -3002,7 +3008,29 @@
"defaultValue": "null"
},
{
- "id": 376,
+ "id": 380,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 329,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 45,
+ "name": "Session"
+ },
+ "defaultValue": "data"
+ },
+ {
+ "id": 379,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3012,7 +3040,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 302,
+ "line": 329,
"character": 25
}
],
@@ -3029,9 +3057,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 375,
- 377,
- 376
+ 378,
+ 381,
+ 380,
+ 379
]
}
]
@@ -3040,7 +3069,7 @@
{
"type": "reflection",
"declaration": {
- "id": 378,
+ "id": 382,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3049,7 +3078,7 @@
},
"children": [
{
- "id": 379,
+ "id": 383,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3059,7 +3088,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 304,
+ "line": 331,
"character": 19
}
],
@@ -3070,7 +3099,7 @@
"defaultValue": "null"
},
{
- "id": 381,
+ "id": 386,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3080,8 +3109,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 304,
- "character": 44
+ "line": 331,
+ "character": 59
}
],
"type": {
@@ -3090,7 +3119,28 @@
}
},
{
- "id": 380,
+ "id": 385,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 331,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 384,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3100,7 +3150,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 304,
+ "line": 331,
"character": 31
}
],
@@ -3116,9 +3166,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 379,
- 381,
- 380
+ 383,
+ 386,
+ 385,
+ 384
]
}
]
@@ -3134,13 +3185,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 292,
+ "line": 319,
"character": 34
}
]
},
{
- "id": 382,
+ "id": 387,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -3150,7 +3201,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 388,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -3159,7 +3210,7 @@
},
"parameters": [
{
- "id": 384,
+ "id": 389,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -3168,7 +3219,7 @@
},
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
}
@@ -3179,7 +3230,7 @@
{
"type": "reflection",
"declaration": {
- "id": 385,
+ "id": 390,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3188,7 +3239,7 @@
},
"children": [
{
- "id": 388,
+ "id": 393,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3198,7 +3249,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 343,
"character": 34
}
],
@@ -3209,7 +3260,7 @@
"defaultValue": "null"
},
{
- "id": 390,
+ "id": 396,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3219,8 +3270,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
- "character": 59
+ "line": 343,
+ "character": 74
}
],
"type": {
@@ -3230,7 +3281,7 @@
"defaultValue": "null"
},
{
- "id": 386,
+ "id": 391,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -3240,18 +3291,39 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 343,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
},
{
- "id": 387,
+ "id": 394,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 343,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 392,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3261,7 +3333,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 343,
"character": 28
}
],
@@ -3271,7 +3343,7 @@
}
},
{
- "id": 389,
+ "id": 395,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3281,8 +3353,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
- "character": 46
+ "line": 343,
+ "character": 61
}
],
"type": {
@@ -3297,11 +3369,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 388,
- 390,
- 386,
- 387,
- 389
+ 393,
+ 396,
+ 391,
+ 394,
+ 392,
+ 395
]
}
]
@@ -3310,7 +3383,7 @@
{
"type": "reflection",
"declaration": {
- "id": 391,
+ "id": 397,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3319,7 +3392,7 @@
},
"children": [
{
- "id": 392,
+ "id": 398,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3329,7 +3402,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 320,
+ "line": 347,
"character": 19
}
],
@@ -3340,7 +3413,7 @@
"defaultValue": "null"
},
{
- "id": 394,
+ "id": 401,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3350,8 +3423,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 320,
- "character": 44
+ "line": 347,
+ "character": 59
}
],
"type": {
@@ -3360,7 +3433,28 @@
}
},
{
- "id": 393,
+ "id": 400,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 347,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 399,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3370,7 +3464,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 320,
+ "line": 347,
"character": 31
}
],
@@ -3386,9 +3480,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 392,
- 394,
- 393
+ 398,
+ 401,
+ 400,
+ 399
]
}
]
@@ -3401,13 +3496,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 308,
+ "line": 335,
"character": 31
}
]
},
{
- "id": 415,
+ "id": 422,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -3417,7 +3512,7 @@
},
"signatures": [
{
- "id": 416,
+ "id": 423,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -3426,7 +3521,7 @@
},
"parameters": [
{
- "id": 417,
+ "id": 424,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3435,7 +3530,7 @@
},
"type": {
"type": "reference",
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent"
}
}
@@ -3449,13 +3544,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 417,
+ "line": 444,
"character": 31
}
]
},
{
- "id": 398,
+ "id": 405,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -3465,7 +3560,7 @@
},
"signatures": [
{
- "id": 399,
+ "id": 406,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3474,7 +3569,7 @@
},
"parameters": [
{
- "id": 400,
+ "id": 407,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -3488,7 +3583,7 @@
}
},
{
- "id": 401,
+ "id": 408,
"name": "secondsToExpiry",
"kind": 32768,
"kindString": "Parameter",
@@ -3510,13 +3605,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 338,
+ "line": 365,
"character": 25
}
]
},
{
- "id": 404,
+ "id": 411,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -3526,7 +3621,7 @@
},
"signatures": [
{
- "id": 405,
+ "id": 412,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3557,13 +3652,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 351,
+ "line": 378,
"character": 31
}
]
},
{
- "id": 402,
+ "id": 409,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -3573,7 +3668,7 @@
},
"signatures": [
{
- "id": 403,
+ "id": 410,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3595,13 +3690,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 345,
+ "line": 372,
"character": 30
}
]
},
{
- "id": 395,
+ "id": 402,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -3611,7 +3706,7 @@
},
"signatures": [
{
- "id": 396,
+ "id": 403,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3620,7 +3715,7 @@
},
"parameters": [
{
- "id": 397,
+ "id": 404,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -3643,13 +3738,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 324,
+ "line": 351,
"character": 22
}
]
},
{
- "id": 348,
+ "id": 351,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -3658,7 +3753,7 @@
},
"signatures": [
{
- "id": 349,
+ "id": 352,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -3670,7 +3765,7 @@
},
"parameters": [
{
- "id": 350,
+ "id": 353,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3688,7 +3783,7 @@
{
"type": "reflection",
"declaration": {
- "id": 351,
+ "id": 354,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3697,7 +3792,7 @@
},
"children": [
{
- "id": 352,
+ "id": 355,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -3711,7 +3806,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 212,
+ "line": 236,
"character": 16
}
],
@@ -3739,7 +3834,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 352
+ 355
]
}
]
@@ -3755,7 +3850,7 @@
{
"type": "reflection",
"declaration": {
- "id": 353,
+ "id": 356,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3764,7 +3859,7 @@
},
"children": [
{
- "id": 354,
+ "id": 357,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3774,7 +3869,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 213,
+ "line": 237,
"character": 20
}
],
@@ -3794,7 +3889,7 @@
}
},
{
- "id": 355,
+ "id": 358,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3804,7 +3899,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 213,
+ "line": 237,
"character": 43
}
],
@@ -3828,15 +3923,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 354,
- 355
+ 357,
+ 358
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 213,
+ "line": 237,
"character": 14
}
]
@@ -3850,13 +3945,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 211,
+ "line": 235,
"character": 25
}
]
},
{
- "id": 360,
+ "id": 363,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -3865,7 +3960,7 @@
},
"signatures": [
{
- "id": 361,
+ "id": 364,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -3878,7 +3973,7 @@
},
"parameters": [
{
- "id": 362,
+ "id": 365,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -3888,7 +3983,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 363,
+ "id": 366,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3897,7 +3992,7 @@
},
"signatures": [
{
- "id": 364,
+ "id": 367,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -3906,7 +4001,7 @@
},
"parameters": [
{
- "id": 365,
+ "id": 368,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3915,12 +4010,12 @@
},
"type": {
"type": "reference",
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent"
}
},
{
- "id": 366,
+ "id": 369,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -3952,7 +4047,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 300,
"character": 13
}
]
@@ -3963,7 +4058,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 367,
+ "id": 370,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3972,7 +4067,7 @@
},
"children": [
{
- "id": 368,
+ "id": 371,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3982,7 +4077,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 274,
+ "line": 301,
"character": 11
}
],
@@ -3991,7 +4086,7 @@
"types": [
{
"type": "reference",
- "id": 74,
+ "id": 75,
"name": "Subscription"
},
{
@@ -4002,7 +4097,7 @@
}
},
{
- "id": 369,
+ "id": 372,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4012,7 +4107,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 274,
+ "line": 301,
"character": 39
}
],
@@ -4036,15 +4131,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 368,
- 369
+ 371,
+ 372
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 274,
+ "line": 301,
"character": 4
}
]
@@ -4055,13 +4150,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 272,
+ "line": 299,
"character": 19
}
]
},
{
- "id": 335,
+ "id": 338,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -4070,7 +4165,7 @@
},
"signatures": [
{
- "id": 336,
+ "id": 339,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4086,7 +4181,7 @@
{
"type": "reflection",
"declaration": {
- "id": 337,
+ "id": 340,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4095,7 +4190,7 @@
},
"children": [
{
- "id": 338,
+ "id": 341,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4105,7 +4200,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 164,
+ "line": 188,
"character": 8
}
],
@@ -4125,7 +4220,7 @@
}
},
{
- "id": 340,
+ "id": 343,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4135,7 +4230,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 166,
+ "line": 190,
"character": 9
}
],
@@ -4154,7 +4249,7 @@
}
},
{
- "id": 339,
+ "id": 342,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4164,7 +4259,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 165,
+ "line": 189,
"character": 8
}
],
@@ -4189,16 +4284,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 338,
- 340,
- 339
+ 341,
+ 343,
+ 342
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 163,
+ "line": 187,
"character": 34
}
]
@@ -4212,13 +4307,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 163,
+ "line": 187,
"character": 22
}
]
},
{
- "id": 333,
+ "id": 336,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -4227,7 +4322,7 @@
},
"signatures": [
{
- "id": 334,
+ "id": 337,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -4256,13 +4351,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 180,
"character": 9
}
]
},
{
- "id": 318,
+ "id": 320,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -4271,7 +4366,7 @@
},
"signatures": [
{
- "id": 319,
+ "id": 321,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -4283,7 +4378,7 @@
},
"parameters": [
{
- "id": 320,
+ "id": 322,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4294,7 +4389,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 321,
+ "id": 323,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4303,7 +4398,7 @@
},
"children": [
{
- "id": 322,
+ "id": 324,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -4316,7 +4411,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 121,
+ "line": 142,
"character": 9
}
],
@@ -4335,7 +4430,7 @@
}
},
{
- "id": 323,
+ "id": 325,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -4348,7 +4443,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 122,
+ "line": 143,
"character": 12
}
],
@@ -4367,7 +4462,7 @@
}
},
{
- "id": 324,
+ "id": 326,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -4380,7 +4475,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 123,
+ "line": 144,
"character": 12
}
],
@@ -4424,16 +4519,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 322,
- 323,
- 324
+ 324,
+ 325,
+ 326
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 120,
+ "line": 141,
"character": 15
}
]
@@ -4447,7 +4542,7 @@
{
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 327,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4456,7 +4551,7 @@
},
"children": [
{
- "id": 326,
+ "id": 333,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4466,7 +4561,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 125,
+ "line": 151,
"character": 8
}
],
@@ -4486,7 +4581,7 @@
}
},
{
- "id": 330,
+ "id": 332,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4496,7 +4591,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 129,
+ "line": 150,
"character": 9
}
],
@@ -4515,7 +4610,7 @@
}
},
{
- "id": 328,
+ "id": 330,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -4526,18 +4621,48 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 127,
+ "line": 148,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
},
{
- "id": 329,
+ "id": 328,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 146,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 45,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 331,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -4548,7 +4673,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 128,
+ "line": 149,
"character": 7
}
],
@@ -4567,7 +4692,7 @@
}
},
{
- "id": 327,
+ "id": 329,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4577,7 +4702,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 126,
+ "line": 147,
"character": 8
}
],
@@ -4602,18 +4727,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 326,
+ 333,
+ 332,
330,
328,
- 329,
- 327
+ 331,
+ 329
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 124,
+ "line": 145,
"character": 31
}
]
@@ -4627,13 +4753,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 120,
+ "line": 141,
"character": 14
}
]
},
{
- "id": 356,
+ "id": 359,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -4642,7 +4768,7 @@
},
"signatures": [
{
- "id": 357,
+ "id": 360,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -4650,7 +4776,8 @@
"isExported": true
},
"comment": {
- "shortText": "Signs out the current user, if there is a logged in user."
+ "shortText": "Inside a browser context, `signOut()` will remove extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",
+ "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"
},
"type": {
"type": "reference",
@@ -4658,7 +4785,7 @@
{
"type": "reflection",
"declaration": {
- "id": 358,
+ "id": 361,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4667,7 +4794,7 @@
},
"children": [
{
- "id": 359,
+ "id": 362,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4677,7 +4804,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 285,
"character": 34
}
],
@@ -4701,14 +4828,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 359
+ 362
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 285,
"character": 27
}
]
@@ -4722,13 +4849,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 285,
"character": 15
}
]
},
{
- "id": 308,
+ "id": 309,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -4737,7 +4864,7 @@
},
"signatures": [
{
- "id": 309,
+ "id": 310,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -4749,7 +4876,7 @@
},
"parameters": [
{
- "id": 310,
+ "id": 311,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4760,7 +4887,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 311,
+ "id": 312,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4769,7 +4896,7 @@
},
"children": [
{
- "id": 312,
+ "id": 313,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -4801,7 +4928,7 @@
}
},
{
- "id": 313,
+ "id": 314,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -4838,8 +4965,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 312,
- 313
+ 313,
+ 314
]
}
],
@@ -4860,7 +4987,7 @@
{
"type": "reflection",
"declaration": {
- "id": 314,
+ "id": 315,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4869,7 +4996,7 @@
},
"children": [
{
- "id": 315,
+ "id": 319,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4879,8 +5006,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
- "character": 37
+ "line": 99,
+ "character": 8
}
],
"type": {
@@ -4891,6 +5018,11 @@
"id": 45,
"name": "Session"
},
+ {
+ "type": "reference",
+ "id": 51,
+ "name": "User"
+ },
{
"type": "intrinsic",
"name": "null"
@@ -4899,7 +5031,7 @@
}
},
{
- "id": 317,
+ "id": 318,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4909,8 +5041,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
- "character": 79
+ "line": 98,
+ "character": 9
}
],
"type": {
@@ -4927,6 +5059,36 @@
]
}
},
+ {
+ "id": 317,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 97,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 45,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
{
"id": 316,
"name": "user",
@@ -4938,8 +5100,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
- "character": 59
+ "line": 96,
+ "character": 8
}
],
"type": {
@@ -4963,7 +5125,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 315,
+ 319,
+ 318,
317,
316
]
@@ -4992,7 +5155,7 @@
]
},
{
- "id": 341,
+ "id": 344,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -5001,7 +5164,7 @@
},
"signatures": [
{
- "id": 342,
+ "id": 345,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -5013,7 +5176,7 @@
},
"parameters": [
{
- "id": 343,
+ "id": 346,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -5022,7 +5185,7 @@
},
"type": {
"type": "reference",
- "id": 69,
+ "id": 70,
"name": "UserAttributes"
}
}
@@ -5033,7 +5196,7 @@
{
"type": "reflection",
"declaration": {
- "id": 344,
+ "id": 347,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5042,7 +5205,7 @@
},
"children": [
{
- "id": 345,
+ "id": 348,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -5052,7 +5215,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 19
}
],
@@ -5072,7 +5235,7 @@
}
},
{
- "id": 347,
+ "id": 350,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5082,7 +5245,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 58
}
],
@@ -5101,7 +5264,7 @@
}
},
{
- "id": 346,
+ "id": 349,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -5111,7 +5274,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 38
}
],
@@ -5136,16 +5299,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 345,
- 347,
- 346
+ 348,
+ 350,
+ 349
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 188,
+ "line": 212,
"character": 13
}
]
@@ -5159,13 +5322,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 186,
+ "line": 210,
"character": 14
}
]
},
{
- "id": 331,
+ "id": 334,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -5174,7 +5337,7 @@
},
"signatures": [
{
- "id": 332,
+ "id": 335,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -5182,7 +5345,8 @@
"isExported": true
},
"comment": {
- "shortText": "Returns the user data, if there is a logged in user."
+ "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.",
+ "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n"
},
"type": {
"type": "union",
@@ -5203,7 +5367,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 173,
"character": 6
}
]
@@ -5214,43 +5378,43 @@
"title": "Constructors",
"kind": 512,
"children": [
- 294
+ 295
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 287,
+ 288,
+ 291,
290,
289,
- 288,
+ 293,
292,
- 291,
- 293
+ 294
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 406,
- 370,
- 382,
- 415,
- 398,
- 404,
+ 413,
+ 373,
+ 387,
+ 422,
+ 405,
+ 411,
+ 409,
402,
- 395,
- 348,
- 360,
- 335,
- 333,
- 318,
- 356,
- 308,
- 341,
- 331
+ 351,
+ 363,
+ 338,
+ 336,
+ 320,
+ 359,
+ 309,
+ 344,
+ 334
]
}
],
@@ -5263,7 +5427,7 @@
]
},
{
- "id": 418,
+ "id": 425,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -5272,7 +5436,7 @@
},
"children": [
{
- "id": 420,
+ "id": 427,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -5291,7 +5455,7 @@
"defaultValue": "true"
},
{
- "id": 423,
+ "id": 430,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -5310,7 +5474,7 @@
"defaultValue": "true"
},
{
- "id": 424,
+ "id": 431,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -5325,7 +5489,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 425,
+ "id": 432,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5335,7 +5499,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 422,
+ "id": 429,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -5354,7 +5518,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 421,
+ "id": 428,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -5373,7 +5537,7 @@
"defaultValue": "true"
},
{
- "id": 419,
+ "id": 426,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -5397,12 +5561,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 420,
- 423,
- 424,
- 422,
- 421,
- 419
+ 427,
+ 430,
+ 431,
+ 429,
+ 428,
+ 426
]
}
],
@@ -5424,14 +5588,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 286
+ 287
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 418
+ 425
]
}
],
@@ -5444,7 +5608,7 @@
]
},
{
- "id": 426,
+ "id": 433,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -5454,37 +5618,37 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 428,
+ "id": 435,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 95
+ "target": 96
},
{
- "id": 433,
+ "id": 440,
"name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 84
+ "target": 85
},
{
- "id": 427,
+ "id": 434,
"name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 94
+ "target": 95
},
{
- "id": 429,
+ "id": 436,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
@@ -5494,17 +5658,17 @@
"target": 45
},
{
- "id": 432,
+ "id": 439,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 74
+ "target": 75
},
{
- "id": 430,
+ "id": 437,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
@@ -5514,24 +5678,24 @@
"target": 51
},
{
- "id": 431,
+ "id": 438,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 69
+ "target": 70
},
{
- "id": 434,
+ "id": 441,
"name": "UserCredentials",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 90
+ "target": 91
}
],
"groups": [
@@ -5539,14 +5703,14 @@
"title": "References",
"kind": 16777216,
"children": [
- 428,
- 433,
- 427,
- 429,
- 432,
- 430,
- 431,
- 434
+ 435,
+ 440,
+ 434,
+ 436,
+ 439,
+ 437,
+ 438,
+ 441
]
}
],
@@ -5559,7 +5723,7 @@
]
},
{
- "id": 96,
+ "id": 97,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -5569,7 +5733,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 98,
+ "id": 99,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -5591,7 +5755,7 @@
"defaultValue": "\"\""
},
{
- "id": 99,
+ "id": 100,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -5609,7 +5773,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 100,
+ "id": 101,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5620,7 +5784,7 @@
}
},
{
- "id": 101,
+ "id": 102,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -5642,7 +5806,7 @@
"defaultValue": "60 * 1000"
},
{
- "id": 97,
+ "id": 98,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -5664,7 +5828,7 @@
"defaultValue": "\"http://localhost:9999\""
},
{
- "id": 102,
+ "id": 103,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -5686,7 +5850,7 @@
"defaultValue": "\"supabase.auth.token\""
},
{
- "id": 103,
+ "id": 104,
"name": "COOKIE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -5696,7 +5860,7 @@
},
"children": [
{
- "id": 106,
+ "id": 107,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -5717,7 +5881,7 @@
"defaultValue": "\"\""
},
{
- "id": 105,
+ "id": 106,
"name": "lifetime",
"kind": 32,
"kindString": "Variable",
@@ -5738,7 +5902,7 @@
"defaultValue": "60 * 60 * 8"
},
{
- "id": 104,
+ "id": 105,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -5759,7 +5923,7 @@
"defaultValue": "\"sb:token\""
},
{
- "id": 107,
+ "id": 108,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -5780,7 +5944,7 @@
"defaultValue": "\"/\""
},
{
- "id": 108,
+ "id": 109,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -5806,11 +5970,11 @@
"title": "Variables",
"kind": 32,
"children": [
+ 107,
106,
105,
- 104,
- 107,
- 108
+ 108,
+ 109
]
}
],
@@ -5832,18 +5996,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 98,
99,
- 101,
- 97,
- 102
+ 100,
+ 102,
+ 98,
+ 103
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 103
+ 104
]
}
],
@@ -5856,7 +6020,7 @@
]
},
{
- "id": 109,
+ "id": 110,
"name": "\"lib/cookies\"",
"kind": 1,
"kindString": "Module",
@@ -5866,7 +6030,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
"children": [
{
- "id": 110,
+ "id": 111,
"name": "Cookie",
"kind": 4194304,
"kindString": "Type alias",
@@ -5881,14 +6045,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 111,
+ "id": 112,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 115,
+ "id": 116,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -5917,7 +6081,7 @@
}
},
{
- "id": 114,
+ "id": 115,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -5935,7 +6099,7 @@
}
},
{
- "id": 112,
+ "id": 113,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -5953,7 +6117,7 @@
}
},
{
- "id": 116,
+ "id": 117,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -5982,7 +6146,7 @@
}
},
{
- "id": 117,
+ "id": 118,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -6011,7 +6175,7 @@
}
},
{
- "id": 113,
+ "id": 114,
"name": "value",
"kind": 32,
"kindString": "Variable",
@@ -6034,12 +6198,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 115,
- 114,
- 112,
116,
+ 115,
+ 113,
117,
- 113
+ 118,
+ 114
]
}
],
@@ -6054,7 +6218,7 @@
}
},
{
- "id": 148,
+ "id": 149,
"name": "deleteCookie",
"kind": 64,
"kindString": "Function",
@@ -6063,7 +6227,7 @@
},
"signatures": [
{
- "id": 149,
+ "id": 150,
"name": "deleteCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -6072,7 +6236,7 @@
},
"parameters": [
{
- "id": 150,
+ "id": 151,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -6085,7 +6249,7 @@
}
},
{
- "id": 151,
+ "id": 152,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -6098,7 +6262,7 @@
}
},
{
- "id": 152,
+ "id": 153,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -6126,14 +6290,14 @@
]
},
{
- "id": 131,
+ "id": 132,
"name": "isSecureEnvironment",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 132,
+ "id": 133,
"name": "isSecureEnvironment",
"kind": 4096,
"kindString": "Call signature",
@@ -6143,7 +6307,7 @@
},
"parameters": [
{
- "id": 133,
+ "id": 134,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -6169,14 +6333,14 @@
]
},
{
- "id": 118,
+ "id": 119,
"name": "serialize",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 119,
+ "id": 120,
"name": "serialize",
"kind": 4096,
"kindString": "Call signature",
@@ -6186,7 +6350,7 @@
},
"parameters": [
{
- "id": 120,
+ "id": 121,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -6197,7 +6361,7 @@
}
},
{
- "id": 121,
+ "id": 122,
"name": "val",
"kind": 32768,
"kindString": "Parameter",
@@ -6208,7 +6372,7 @@
}
},
{
- "id": 122,
+ "id": 123,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -6216,14 +6380,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 123,
+ "id": 124,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 125,
+ "id": 126,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -6241,7 +6405,7 @@
}
},
{
- "id": 127,
+ "id": 128,
"name": "expires",
"kind": 32,
"kindString": "Variable",
@@ -6259,7 +6423,7 @@
}
},
{
- "id": 128,
+ "id": 129,
"name": "httpOnly",
"kind": 32,
"kindString": "Variable",
@@ -6277,7 +6441,7 @@
}
},
{
- "id": 124,
+ "id": 125,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -6295,7 +6459,7 @@
}
},
{
- "id": 126,
+ "id": 127,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -6313,7 +6477,7 @@
}
},
{
- "id": 130,
+ "id": 131,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -6331,7 +6495,7 @@
}
},
{
- "id": 129,
+ "id": 130,
"name": "secure",
"kind": 32,
"kindString": "Variable",
@@ -6354,13 +6518,13 @@
"title": "Variables",
"kind": 32,
"children": [
+ 126,
+ 128,
+ 129,
125,
127,
- 128,
- 124,
- 126,
- 130,
- 129
+ 131,
+ 130
]
}
],
@@ -6390,14 +6554,14 @@
]
},
{
- "id": 134,
+ "id": 135,
"name": "serializeCookie",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 135,
+ "id": 136,
"name": "serializeCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -6407,19 +6571,19 @@
},
"parameters": [
{
- "id": 136,
+ "id": 137,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 110,
+ "id": 111,
"name": "Cookie"
}
},
{
- "id": 137,
+ "id": 138,
"name": "secure",
"kind": 32768,
"kindString": "Parameter",
@@ -6445,7 +6609,7 @@
]
},
{
- "id": 143,
+ "id": 144,
"name": "setCookie",
"kind": 64,
"kindString": "Function",
@@ -6454,7 +6618,7 @@
},
"signatures": [
{
- "id": 144,
+ "id": 145,
"name": "setCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -6466,7 +6630,7 @@
},
"parameters": [
{
- "id": 145,
+ "id": 146,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -6479,7 +6643,7 @@
}
},
{
- "id": 146,
+ "id": 147,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -6492,7 +6656,7 @@
}
},
{
- "id": 147,
+ "id": 148,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
@@ -6501,7 +6665,7 @@
},
"type": {
"type": "reference",
- "id": 110,
+ "id": 111,
"name": "Cookie"
}
}
@@ -6521,7 +6685,7 @@
]
},
{
- "id": 138,
+ "id": 139,
"name": "setCookies",
"kind": 64,
"kindString": "Function",
@@ -6530,7 +6694,7 @@
},
"signatures": [
{
- "id": 139,
+ "id": 140,
"name": "setCookies",
"kind": 4096,
"kindString": "Call signature",
@@ -6542,7 +6706,7 @@
},
"parameters": [
{
- "id": 140,
+ "id": 141,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -6555,7 +6719,7 @@
}
},
{
- "id": 141,
+ "id": 142,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -6568,7 +6732,7 @@
}
},
{
- "id": 142,
+ "id": 143,
"name": "cookies",
"kind": 32768,
"kindString": "Parameter",
@@ -6580,7 +6744,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 110,
+ "id": 111,
"name": "Cookie"
}
],
@@ -6608,19 +6772,19 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 110
+ 111
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 148,
- 131,
- 118,
- 134,
- 143,
- 138
+ 149,
+ 132,
+ 119,
+ 135,
+ 144,
+ 139
]
}
],
@@ -6823,7 +6987,7 @@
"parameters": [
{
"id": 11,
- "name": "msg",
+ "name": "err",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
@@ -6953,7 +7117,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 24,
+ "line": 27,
"character": 23
}
]
@@ -7047,7 +7211,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 37,
+ "line": 40,
"character": 29
}
]
@@ -7114,7 +7278,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 55,
+ "line": 58,
"character": 25
}
]
@@ -7247,7 +7411,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 59,
+ "line": 62,
"character": 26
}
]
@@ -7327,7 +7491,7 @@
"sources": [
{
"fileName": "lib/fetch.ts",
- "line": 63,
+ "line": 66,
"character": 25
}
]
@@ -7371,7 +7535,7 @@
]
},
{
- "id": 250,
+ "id": 251,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -7381,7 +7545,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 251,
+ "id": 252,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -7390,7 +7554,7 @@
},
"indexSignature": [
{
- "id": 253,
+ "id": 254,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -7399,7 +7563,7 @@
},
"parameters": [
{
- "id": 254,
+ "id": 255,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -7420,7 +7584,7 @@
],
"children": [
{
- "id": 256,
+ "id": 257,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -7429,7 +7593,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 258,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -7438,7 +7602,7 @@
},
"parameters": [
{
- "id": 258,
+ "id": 259,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -7453,7 +7617,7 @@
],
"type": {
"type": "reference",
- "id": 251,
+ "id": 252,
"name": "LocalStorage"
}
}
@@ -7467,7 +7631,7 @@
]
},
{
- "id": 255,
+ "id": 256,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -7487,7 +7651,7 @@
}
},
{
- "id": 252,
+ "id": 253,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -7507,7 +7671,7 @@
}
},
{
- "id": 259,
+ "id": 260,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -7516,7 +7680,7 @@
},
"signatures": [
{
- "id": 260,
+ "id": 261,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -7538,7 +7702,7 @@
]
},
{
- "id": 268,
+ "id": 269,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -7547,7 +7711,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 270,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -7556,7 +7720,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 271,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7593,7 +7757,7 @@
]
},
{
- "id": 261,
+ "id": 262,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -7602,7 +7766,7 @@
},
"signatures": [
{
- "id": 262,
+ "id": 263,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -7611,7 +7775,7 @@
},
"parameters": [
{
- "id": 263,
+ "id": 264,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -7648,7 +7812,7 @@
]
},
{
- "id": 271,
+ "id": 272,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -7657,7 +7821,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 273,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -7666,7 +7830,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 274,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7694,7 +7858,7 @@
]
},
{
- "id": 264,
+ "id": 265,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -7703,7 +7867,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 266,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -7712,7 +7876,7 @@
},
"parameters": [
{
- "id": 266,
+ "id": 267,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7725,7 +7889,7 @@
}
},
{
- "id": 267,
+ "id": 268,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -7758,26 +7922,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 256
+ 257
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 255,
- 252
+ 256,
+ 253
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 259,
- 268,
- 261,
- 271,
- 264
+ 260,
+ 269,
+ 262,
+ 272,
+ 265
]
}
],
@@ -7796,7 +7960,7 @@
]
},
{
- "id": 278,
+ "id": 279,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -7805,7 +7969,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 280,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -7814,7 +7978,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 281,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -7827,7 +7991,7 @@
}
},
{
- "id": 281,
+ "id": 282,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -7874,7 +8038,7 @@
]
},
{
- "id": 276,
+ "id": 277,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -7884,7 +8048,7 @@
},
"signatures": [
{
- "id": 277,
+ "id": 278,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -7906,7 +8070,7 @@
]
},
{
- "id": 274,
+ "id": 275,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -7915,7 +8079,7 @@
},
"signatures": [
{
- "id": 275,
+ "id": 276,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -7942,16 +8106,16 @@
"title": "Classes",
"kind": 128,
"children": [
- 251
+ 252
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 278,
- 276,
- 274
+ 279,
+ 277,
+ 275
]
}
],
@@ -7964,7 +8128,7 @@
]
},
{
- "id": 282,
+ "id": 283,
"name": "\"lib/polyfills\"",
"kind": 1,
"kindString": "Module",
@@ -7974,7 +8138,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",
"children": [
{
- "id": 283,
+ "id": 284,
"name": "polyfillGlobalThis",
"kind": 64,
"kindString": "Function",
@@ -7983,7 +8147,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 285,
"name": "polyfillGlobalThis",
"kind": 4096,
"kindString": "Call signature",
@@ -8013,7 +8177,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 283
+ 284
]
}
],
@@ -8036,7 +8200,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
{
- "id": 84,
+ "id": 85,
"name": "CookieOptions",
"kind": 256,
"kindString": "Interface",
@@ -8045,7 +8209,7 @@
},
"children": [
{
- "id": 87,
+ "id": 88,
"name": "domain",
"kind": 1024,
"kindString": "Property",
@@ -8056,7 +8220,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 71,
+ "line": 72,
"character": 8
}
],
@@ -8075,7 +8239,7 @@
}
},
{
- "id": 86,
+ "id": 87,
"name": "lifetime",
"kind": 1024,
"kindString": "Property",
@@ -8086,7 +8250,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 69,
+ "line": 70,
"character": 10
}
],
@@ -8105,7 +8269,7 @@
}
},
{
- "id": 85,
+ "id": 86,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -8116,7 +8280,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 67,
+ "line": 68,
"character": 6
}
],
@@ -8135,7 +8299,7 @@
}
},
{
- "id": 88,
+ "id": 89,
"name": "path",
"kind": 1024,
"kindString": "Property",
@@ -8146,7 +8310,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 72,
+ "line": 73,
"character": 6
}
],
@@ -8165,7 +8329,7 @@
}
},
{
- "id": 89,
+ "id": 90,
"name": "sameSite",
"kind": 1024,
"kindString": "Property",
@@ -8176,7 +8340,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 74,
+ "line": 75,
"character": 10
}
],
@@ -8200,18 +8364,18 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 88,
87,
86,
- 85,
- 88,
- 89
+ 89,
+ 90
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 65,
+ "line": 66,
"character": 30
}
]
@@ -8349,7 +8513,7 @@
]
},
{
- "id": 74,
+ "id": 75,
"name": "Subscription",
"kind": 256,
"kindString": "Interface",
@@ -8358,7 +8522,7 @@
},
"children": [
{
- "id": 76,
+ "id": 77,
"name": "callback",
"kind": 1024,
"kindString": "Property",
@@ -8371,14 +8535,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 59,
"character": 10
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 77,
+ "id": 78,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8387,7 +8551,7 @@
},
"signatures": [
{
- "id": 78,
+ "id": 79,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -8396,7 +8560,7 @@
},
"parameters": [
{
- "id": 79,
+ "id": 80,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -8405,12 +8569,12 @@
},
"type": {
"type": "reference",
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent"
}
},
{
- "id": 80,
+ "id": 81,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -8442,7 +8606,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 59,
"character": 11
}
]
@@ -8450,7 +8614,7 @@
}
},
{
- "id": 75,
+ "id": 76,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -8463,7 +8627,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 54,
+ "line": 55,
"character": 4
}
],
@@ -8473,7 +8637,7 @@
}
},
{
- "id": 81,
+ "id": 82,
"name": "unsubscribe",
"kind": 1024,
"kindString": "Property",
@@ -8486,14 +8650,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 62,
+ "line": 63,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 82,
+ "id": 83,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8502,7 +8666,7 @@
},
"signatures": [
{
- "id": 83,
+ "id": 84,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -8518,7 +8682,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 62,
+ "line": 63,
"character": 14
}
]
@@ -8531,16 +8695,16 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 77,
76,
- 75,
- 81
+ 82
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 51,
"character": 29
}
]
@@ -8681,7 +8845,37 @@
}
},
{
- "id": 65,
+ "id": 63,
+ "name": "confirmation_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 22,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 66,
"name": "confirmed_at",
"kind": 1024,
"kindString": "Property",
@@ -8692,7 +8886,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 24,
+ "line": 25,
"character": 14
}
],
@@ -8711,7 +8905,7 @@
}
},
{
- "id": 64,
+ "id": 65,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -8721,7 +8915,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 23,
+ "line": 24,
"character": 12
}
],
@@ -8731,7 +8925,7 @@
}
},
{
- "id": 63,
+ "id": 64,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -8742,7 +8936,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 23,
"character": 7
}
],
@@ -8781,7 +8975,7 @@
}
},
{
- "id": 66,
+ "id": 67,
"name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
@@ -8792,7 +8986,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 25,
+ "line": 26,
"character": 17
}
],
@@ -8811,7 +9005,7 @@
}
},
{
- "id": 67,
+ "id": 68,
"name": "role",
"kind": 1024,
"kindString": "Property",
@@ -8822,7 +9016,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 27,
"character": 6
}
],
@@ -8841,7 +9035,7 @@
}
},
{
- "id": 68,
+ "id": 69,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -8852,7 +9046,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 27,
+ "line": 28,
"character": 12
}
],
@@ -8943,13 +9137,14 @@
"children": [
53,
62,
+ 63,
+ 66,
65,
64,
- 63,
52,
- 66,
67,
68,
+ 69,
58
]
}
@@ -8963,7 +9158,7 @@
]
},
{
- "id": 69,
+ "id": 70,
"name": "UserAttributes",
"kind": 256,
"kindString": "Interface",
@@ -8972,7 +9167,7 @@
},
"children": [
{
- "id": 73,
+ "id": 74,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -8986,7 +9181,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 47,
+ "line": 48,
"character": 6
}
],
@@ -9005,7 +9200,7 @@
}
},
{
- "id": 70,
+ "id": 71,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -9019,7 +9214,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 35,
"character": 7
}
],
@@ -9038,7 +9233,7 @@
}
},
{
- "id": 72,
+ "id": 73,
"name": "email_change_token",
"kind": 1024,
"kindString": "Property",
@@ -9052,7 +9247,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 42,
+ "line": 43,
"character": 20
}
],
@@ -9071,7 +9266,7 @@
}
},
{
- "id": 71,
+ "id": 72,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -9085,7 +9280,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 38,
+ "line": 39,
"character": 10
}
],
@@ -9109,23 +9304,23 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 74,
+ 71,
73,
- 70,
- 72,
- 71
+ 72
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 30,
+ "line": 31,
"character": 31
}
]
},
{
- "id": 90,
+ "id": 91,
"name": "UserCredentials",
"kind": 256,
"kindString": "Interface",
@@ -9134,7 +9329,7 @@
},
"children": [
{
- "id": 91,
+ "id": 92,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -9145,7 +9340,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 78,
+ "line": 79,
"character": 7
}
],
@@ -9164,7 +9359,7 @@
}
},
{
- "id": 92,
+ "id": 93,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -9175,7 +9370,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 79,
+ "line": 80,
"character": 10
}
],
@@ -9194,7 +9389,7 @@
}
},
{
- "id": 93,
+ "id": 94,
"name": "provider",
"kind": 1024,
"kindString": "Property",
@@ -9205,13 +9400,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 81,
+ "line": 82,
"character": 10
}
],
"type": {
"type": "reference",
- "id": 94,
+ "id": 95,
"name": "Provider"
}
}
@@ -9221,22 +9416,22 @@
"title": "Properties",
"kind": 1024,
"children": [
- 91,
92,
- 93
+ 93,
+ 94
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 77,
+ "line": 78,
"character": 32
}
]
},
{
- "id": 95,
+ "id": 96,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -9273,7 +9468,7 @@
}
},
{
- "id": 94,
+ "id": 95,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -9323,20 +9518,20 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 84,
+ 85,
45,
- 74,
+ 75,
51,
- 69,
- 90
+ 70,
+ 91
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 95,
- 94
+ 96,
+ 95
]
}
],
@@ -9354,14 +9549,14 @@
"title": "Modules",
"kind": 1,
"children": [
- 153,
- 285,
- 426,
- 96,
- 109,
+ 154,
+ 286,
+ 433,
+ 97,
+ 110,
1,
- 250,
- 282,
+ 251,
+ 283,
44
]
}
diff --git a/web/spec/gotrue.yml b/web/spec/gotrue.yml
index 56751034398..3bea39e143b 100644
--- a/web/spec/gotrue.yml
+++ b/web/spec/gotrue.yml
@@ -97,7 +97,7 @@ pages:
- name: Sign up
js: |
```js
- const { error, data } = await auth.signUp({
+ const { user, session, error } = await auth.signUp({
password: 'example-password',
})
@@ -121,7 +121,7 @@ pages:
})
// send magic link (passwordless link)
- const { user, error } = await auth.signIn({
+ const { user, session, error } = await auth.signIn({
})
```
diff --git a/web/spec/postgrest.yml b/web/spec/postgrest.yml
index 2ddd2e879cb..68b4107fd6b 100644
--- a/web/spec/postgrest.yml
+++ b/web/spec/postgrest.yml
@@ -3,10 +3,17 @@ openref: 0.1
info:
title: PostgREST Client
description: |
+ This is an isomorphic JavaScript client for [PostgREST](https://postgrest.org/).
+
PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API.
Supabase provides client libraries to interact with the PostgREST.
+ ### Links
+
+ - [Source code](https://github.com/supabase/postgrest-js)
+ - [PostgREST](https://postgrest.org/)
+
definition: spec/postgrest.json
libraries:
- name: 'JavaScript'
@@ -71,15 +78,23 @@ pages:
npm install @supabase/postgrest-js
```
- - [Source code](https://github.com/supabase/postgrest-js)
-
- ## Python
-
- ```bash
- # Not yet implemented
Initializing:
$ref: '"PostgrestClient".PostgrestClient.constructor'
+
+ examples:
+ - name: createClient()
+ js: |
+ ```js
+ import { PostgrestClient } from '@supabase/postgrest-js'
+
+ const REST_URL = 'http://localhost:3000'
+ const postgrest = new PostgrestClient(REST_URL)
+ ```
+ py: |
+ ```py
+ # Not yet implemented
+ ```
from:
$ref: '"PostgrestClient".PostgrestClient.from'
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index ebe6640bb5a..806423e4034 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -221,14 +221,16 @@ pages:
auth.signUp():
$ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.signUp'
notes: |
- - By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable email confirmations by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
+ - By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
+ - If "Email Confirmations" is turned on, a `user` is returned but `session` will be null
+ - If "Email Confirmations" is turned off, both a `user` and a `session` will be returned
- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
examples:
- name: Sign up
isSpotlight: true
js: |
```js
- const { user, error } = await supabase.auth.signUp({
+ const { user, session, error } = await supabase.auth.signUp({
password: 'example-password',
})
@@ -250,7 +252,7 @@ pages:
isSpotlight: true
js: |
```js
- const { user, error } = await supabase.auth.signIn({
+ const { user, session, error } = await supabase.auth.signIn({
password: 'example-password',
})
@@ -275,7 +277,7 @@ pages:
description: Supabase supports OAuth logins.
js: |
```js
- const { user, error } = await supabase.auth.signIn({
+ const { user, session, error } = await supabase.auth.signIn({
// provider can be 'github', 'google', 'gitlab', or 'bitbucket'
provider: 'github'
})