@supabase/auth-js 2.110.1 → 2.110.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/GoTrueClient.d.ts.map +1 -1
- package/dist/main/GoTrueClient.js +8 -2
- package/dist/main/GoTrueClient.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.d.ts.map +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/lib/version.js.map +1 -1
- package/dist/module/GoTrueClient.d.ts.map +1 -1
- package/dist/module/GoTrueClient.js +8 -2
- package/dist/module/GoTrueClient.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.d.ts.map +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/lib/version.js.map +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/GoTrueClient.ts +8 -2
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
package/src/GoTrueClient.ts
CHANGED
|
@@ -4000,6 +4000,10 @@ export default class GoTrueClient {
|
|
|
4000
4000
|
{ scope }: SignOut = { scope: 'global' }
|
|
4001
4001
|
): Promise<{ error: AuthError | null }> {
|
|
4002
4002
|
return await this._useSession(async (result) => {
|
|
4003
|
+
const removeCurrentSession = async () => {
|
|
4004
|
+
await this._removeSession()
|
|
4005
|
+
await removeItemAsync(this.storage, `${this.storageKey}-code-verifier`)
|
|
4006
|
+
}
|
|
4003
4007
|
const { data, error: sessionError } = result
|
|
4004
4008
|
if (sessionError && !isAuthSessionMissingError(sessionError)) {
|
|
4005
4009
|
return this._returnResult({ error: sessionError })
|
|
@@ -4017,13 +4021,15 @@ export default class GoTrueClient {
|
|
|
4017
4021
|
isAuthSessionMissingError(error)
|
|
4018
4022
|
)
|
|
4019
4023
|
) {
|
|
4024
|
+
if (scope !== 'others') {
|
|
4025
|
+
await removeCurrentSession()
|
|
4026
|
+
}
|
|
4020
4027
|
return this._returnResult({ error })
|
|
4021
4028
|
}
|
|
4022
4029
|
}
|
|
4023
4030
|
}
|
|
4024
4031
|
if (scope !== 'others') {
|
|
4025
|
-
await
|
|
4026
|
-
await removeItemAsync(this.storage, `${this.storageKey}-code-verifier`)
|
|
4032
|
+
await removeCurrentSession()
|
|
4027
4033
|
}
|
|
4028
4034
|
return this._returnResult({ error: null })
|
|
4029
4035
|
})
|
package/src/lib/version.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
// - Debugging and support (identifying which version is running)
|
|
5
5
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
6
6
|
// - Ensuring build artifacts match the published package version
|
|
7
|
-
export const version = '2.110.
|
|
7
|
+
export const version = '2.110.2-canary.0'
|