Skip to content

Commit

Permalink
Merge pull request #142 from supabase/fix/129
Browse files Browse the repository at this point in the history
Fix/129
  • Loading branch information
awalias committed Nov 18, 2021
2 parents d9a52be + 4b37d7b commit 9c0f42b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,9 @@ export default class GoTrueClient {
}
if (options?.storeSession) {
this._saveSession(session)
const recoveryMode = getParameterByName('type')
this._notifyAllSubscribers('SIGNED_IN')
if (getParameterByName('type') === 'recovery') {
if (recoveryMode === 'recovery') {
this._notifyAllSubscribers('PASSWORD_RECOVERY')
}
}
Expand Down

0 comments on commit 9c0f42b

Please sign in to comment.