Signed tokens

Your task In the code box, write makeToken(userId) (valid for one hour) and readToken(token) (answers the user id, or null for a changed, fake, broken or expired token), signed with TOKEN_SECRET, and export both. Then press Run my code.

Getting the editor ready