Skip to content

Commit cdb5220

Browse files
committed
fix(auth): use _useSession for provider-only callbacks
1 parent dd29b8b commit cdb5220

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/auth-js/src/GoTrueClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,9 @@ export default class GoTrueClient {
20472047

20482048
if (!access_token || !expires_in || !refresh_token || !token_type) {
20492049
if (provider_token || provider_refresh_token) {
2050-
const { data: sessionData, error: sessionError } = await this.__loadSession()
2050+
const { data: sessionData, error: sessionError } = await this._useSession(
2051+
async (result) => result
2052+
)
20512053
if (sessionError) throw sessionError
20522054
if (!sessionData.session) {
20532055
throw new AuthImplicitGrantRedirectError('No session defined in URL')

0 commit comments

Comments
 (0)