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 session and status.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session → T?
Current session data, or null if not authenticated.
final
status → SessionStatus
Current authentication status.
final

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