frontendToken abstract method

Token frontendToken(
  1. String userId, {
  2. DateTime? expiresAt,
})

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,
});