UserSessionTokenIssueRequest constructor

UserSessionTokenIssueRequest({
  1. required String userId,
  2. int? expiresAt,
})

Implementation

UserSessionTokenIssueRequest({
  required String userId,
  int? expiresAt,
}) : super() {
  url = 'users/$userId/token';
  body = {'expires_at': expiresAt};
  body.removeWhere((key, value) => value == null);
}