NextAuthState<T> class
State class for NextAuth session and status.
Contains the current session data and authentication status.
Constructors
- NextAuthState({T? session, required SessionStatus status})
-
Creates a NextAuthState with the given
sessionandstatus.const
Properties
Methods
-
copyWith(
{Opt< T> ? session, Opt<SessionStatus> ? status}) → NextAuthState<T> - Creates a copy of this state with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited