Add profile detail on sign in
This commit is contained in:
parent
ad68fac107
commit
2d25e0d9dd
|
|
@ -50,5 +50,5 @@ export default async function signIn(rawCredential: SignInFormData) {
|
|||
|
||||
const token = createJwtToken({ id: user.id });
|
||||
|
||||
return { token };
|
||||
return { token, user: { name: user.name, email: user.email, profilePhotoUrl: user.photoProfile} };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user