createToken abstract method
Create a token for a user.
A token is used to authenticate the user. It is just like a password but it is destined to be used by programs instead of humans. Tokens have a limited validity period (one month).
Parameters:
- String userId (required): The UUID that identifies the user uniquely
Implementation
Future<String?> createToken(String userId, {Duration validity,});