Closed totzk9 closed 4 months ago
@onehassan @dbarrosop
I'd like to clarify, does the NhostSession
for User
already contain the missing fields I mentioned? (e.g emailVerified
, phoneNumber
and phoneNumberVerified
) If so, I could probably create a PR for this
Did some debugging and signIn
does indeed returns the missing fields
{
"accessToken":"eyJhbGc......KI",
"accessTokenExpiresIn":2592000,
"refreshToken":"9b5....6f8",
"refreshTokenId":"465....784",
"user":{"avatarUrl":"http....=g",
"createdAt":"2024-07-13T06:13:52.606751Z",
"defaultRole":"user",
"displayName":"tyro..mail.com",
"email":"tyro...mail.com",
"emailVerified":true,
"id":"be0...e4d",
"isAnonymous":false,
"locale":"en",
"metadata":null,
"phoneNumber":"",
"phoneNumberVerified":false,
"roles":["user","me"]}
}
Will be working on a PR
Thanks for the PR, for reference, this is how it should look like:
https://github.com/nhost/hasura-auth/blob/main/go/api/openapi.yaml#L504-L569
So your PR looks good, thanks again.
nhost-js
haswhile
nhost-dart
only haveReason why I pointed this out: My use case is to make use of the
emailVerified
,phoneNumber
andphoneNumberVerified
.activeMfaType
will also be useful in future implementations