Issue with verify email confirmation token

have this problem where when I try to decode a token generated by _memberManager.GenerateEmailConfirmationTokenAsync(identityUser);

This works when using the reset password token but not with generate email confirmation token. What is the difference? I have tried both econdingurl base and decoding. Nothing seems to work.

Are you using the confirmemailasync method with the token?

Thank you Huwred.

Yes that is correct. Like in that other thread on the old forum I have no issue with the resetpassword token. Here I get some issues with the token being malformed. Maybe something happens when I use the QueryString?

As an example.

In the previous version I used ToUrlBase65 and FromUrlBase64. That works fine with ResetPassword. Not with this token.

Looks like it works now. Maybe add to some example code since this seems to be an issue for more?

I had to use FromUrlBase twice, once in the view and once in the controller.