Pawel
Pawel

Reputation: 897

Different token lifetime for email confirmation and reset password

Is there any implementation of IUserTokenProvider where i can set different token lifetime for email confirmation token and reset password token? In identit 1.0 I could have two token providers (one for each purpose) right now there is only one.

There is DataProtectionTokenProvider but I can't set different lifetime.

Do I have to write my own TokenProvider or is there another solution?

Upvotes: 1

Views: 571

Answers (1)

Pawel
Pawel

Reputation: 897

It is not supported in Identity 2.0 version. They plan to introduce it in 3.0 https://github.com/aspnet/Identity/issues/133

Right now you have to write your own token provider.

Upvotes: 1

Related Questions