Generate user token for member #21692
bjarnef
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently it seems
IMemberManagerexpose e.g.GenerateEmailConfirmationTokenAsync(), but there are others e..g.GenerateUserTokenAsync().https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.usermanager-1.generateusertokenasync?view=aspnetcore-10.0
E.g. to generate a token for One-Time Password (OTP).
It seems
UserManager<MemberIdentityUser>can be injected though and used something like this:or
https://www.stevejgordon.co.uk/asp-net-core-identity-token-providers
Beta Was this translation helpful? Give feedback.
All reactions