You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using FusionAuth to securize my application but I have a problem when registering a user.
When I'm registering a user I'm generating a secret through the API and store it in the corresponding property.
The registration is going well but when I try to access the secret by getting the user through this then the secret is null.
varuserResponse=await _client.RetrieveUserByLoginIdAsync(request.loginId)
if (!userResponse.WasSuccessful())
throw new Exception("Couldn't retrieve user");
userResponse.successResponse.user.twoFactorSecret // IS NULL
For now I'm found a work around by storing the secret into the user data but I was curious to know if there was a better solution.
Thanks again and best regards
The text was updated successfully, but these errors were encountered:
I'm not sure I understand. From the API docs, the twoFactorSecret is The Base64 encoded secret used to generate Two Factor verification codes. So it's not a general purpose secret.
So you generate the secret and send it up to FusionAuth when the user is created. But after two factor is enabled you shouldn't need it any more.
Hello,
I'm using FusionAuth to securize my application but I have a problem when registering a user.
When I'm registering a user I'm generating a secret through the API and store it in the corresponding property.
The registration is going well but when I try to access the secret by getting the user through this then the secret is null.
For now I'm found a work around by storing the secret into the user data but I was curious to know if there was a better solution.
Thanks again and best regards
The text was updated successfully, but these errors were encountered: