Skip to content

Commit aac6305

Browse files
committed
fix: signup should return the full response and not just the body to match other methods on the lib
1 parent 62a9a91 commit aac6305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ class Auth {
1010
this.autoRefreshToken = options.autoRefreshToken
1111

1212
this.signup = async (email, password) => {
13-
const { body } = await superagent
13+
const response = await superagent
1414
.post(`${authUrl}/signup`, { email, password })
1515
.set('accept', 'json')
1616
.set('apikey', this.supabaseKey)
1717

18-
return body
18+
return response
1919
}
2020

2121
this.login = async (email, password) => {

0 commit comments

Comments
 (0)