Sign up should also sign in
This commit is contained in:
@@ -54,6 +54,7 @@ export const UserProvider = ({ children }) => {
|
||||
return auth.signUp(username, password)
|
||||
.then((result) => {
|
||||
if (result.message) throw new Error(result.message);
|
||||
return signIn(username, password);
|
||||
})
|
||||
.catch((error) => {
|
||||
setError(error.message);
|
||||
|
||||
Reference in New Issue
Block a user