Skip to content

Approve/refuse new user via email using one time URIs #16391

Answered by MarGraz
MarGraz asked this question in Q&A
Discussion options

You must be logged in to vote

@Piedone @MikeAlhayek @weirdyang sorry for the late reply, I totally forgot to update this discussion 😅

@MikeAlhayek, unfortunately, I can't use the 2.0.0-previews because I'm going into production soon. I'm not comfortable using an unstable release for production.

In the end, I created my own token handler and passed it in Dependency Injection as a singleton. Of course, if the server reboots, I will lose the token list, but this is not a problem for my requirements since the tokens are not meant to be permanent.

I used the Purpose value to be able to generate multiple tokens for the same UserId. This could be useful if you need it in multiple parts of your code.

Here is the interface I made

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@MarGraz
Comment options

@Piedone
Comment options

@MikeAlhayek
Comment options

@MarGraz
Comment options

Answer selected by MarGraz
@Piedone
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants