I went through many posts on stackoverflow to find how to create a simple web token to confirm a sign up via mail. Without seeing any "official" manner or common technics.
My though was instead of adding a specific cell in database with expiry date to encrypt or hash the expiry date , the email and a random value (generated with randomSecure
) to create my token.
Is this the good manner to achieve that? are there library to automatically do that.
Any help is greatly appreciated.