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(
Session session, {
required UuidValue authUserId,
required String method,
Set<Scope>? scopes,
Transaction? transaction,
});