We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93351f commit 3fe342bCopy full SHA for 3fe342b
src/Auth.js
@@ -14,12 +14,11 @@ class Auth {
14
this.persistSession = options.persistSession === undefined ? true : options.persistSession
15
16
this.signup = async (email, password) => {
17
+ this.removeSavedSession() // clean out the old session before attempting
18
const response = await superagent
19
.post(`${authUrl}/signup`, { email, password })
20
.set('accept', 'json')
21
.set('apikey', this.supabaseKey)
-
22
- this.removeSavedSession() // clean out the old session before returning
23
return response
24
}
25
0 commit comments