createToken abstract method
Creates a new authentication token for the specified user with the given authentication method and optional scopes.
Unlike issueToken this performs no sign-in policy check and no cookie delivery; the returned AuthSuccess always carries the secrets.
Implementation
Future<AuthSuccess> createToken(
final Session session, {
required final UuidValue authUserId,
required final String method,
final Set<Scope>? scopes,
final Transaction? transaction,
});