AuthOperationInvocation<TContext> class final

Host context and authenticated state passed to a typed endpoint handler.

Constructors

AuthOperationInvocation({required TContext context, required AuthUser? user, AuthEndpointRequest request = const AuthEndpointRequest.empty(), bool emailVerified = false, String? activeOrganizationId, String? activeTeamId, FutureOr<void> writeActiveSelection(String? organizationId, String? teamId)?, AuthServerPluginSessionControl? sessionControl})
Creates the host context supplied to a portable endpoint handler.
const

Properties

activeOrganizationId → String?
Active organization selected for this session, when available.
final
activeTeamId → String?
Active team selected for this session, when available.
final
context → TContext
Framework context associated with the request.
final
emailVerified → bool
Whether the current principal has a verified email address.
final
hashCode → int
The hash code for this object.
no setterinherited
request → AuthEndpointRequest
Namespaced request data supplied to the handler.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionControl → AuthServerPluginSessionControl?
Host-owned session operations available to the handler.
final
user → AuthUser?
Authenticated user, or null for an anonymous invocation.
final
writeActiveSelection → FutureOr<void> Function(String? organizationId, String? teamId)?
Callback for persisting a changed organization/team selection.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withRequest(AuthEndpointRequest request) → AuthOperationInvocation<TContext>
Returns a copy carrying request.

Operators

operator ==(Object other) → bool
The equality operator.
inherited