create static method
Implementation
static AccessToken create({
required BuildContext context,
required String userId,
Map<String, dynamic>? additional,
required String subject,
required String deviceID,
DateTime? expire,
}) {
return AccessToken._(
userId: userId,
additional: additional,
issuedAtDate: DateTime.now(),
issuer: context.owner.serviceRootName,
tokenID: getRandomId(12),
subject: subject,
expireDate: expire,
);
}