frontendToken abstract method
Generate a JWT that includes the userId
as payload and that is signed
using your Stream API Secret.
Optionally, you can have tokens expire after a certain amount of time.
By default, all SDK libraries generate user tokens without an expiration time.
Implementation
Token frontendToken(
String userId, {
DateTime? expiresAt,
});