authenticationInfo static method

AuthenticationOverride authenticationInfo(
  1. String userIdentifier,
  2. Set<Scope> scopes, {
  3. String? authId,
})

Sets the session to be authenticated with the provided userIdentifier and scopes.

If authId is not provided, a new UUID will be generated.

Implementation

static AuthenticationOverride authenticationInfo(
  String userIdentifier,
  Set<Scope> scopes, {
  String? authId,
}) => _AuthenticationInfoOverride(
  userIdentifier,
  scopes,
  authId: authId ?? const Uuid().v4().toString(),
);