sessionManager property
DescopeSessionManager
get
sessionManager
Manages the storage and lifetime of a DescopeSession.
You can use this DescopeSessionManager
object as a shared instance to manage
authenticated sessions in your application.
final authResponse = Descope.otp.verify(DeliveryMethod.email, 'andy@example.com', '123456')
final session = DescopeSession(authResponse)
Descope.sessionManager.manageSession(session)
See the documentation for DescopeSessionManager
for more details.
Implementation
static DescopeSessionManager get sessionManager => _sdk.sessionManager;
set
sessionManager
(DescopeSessionManager sessionManager)
Implementation
static set sessionManager(DescopeSessionManager sessionManager) {
_sdk.sessionManager = sessionManager;
}