DescopeSession.fromAuthenticationResponse constructor

DescopeSession.fromAuthenticationResponse(
  1. AuthenticationResponse authenticationResponse
)

Creates a new DescopeSession object from an AuthenticationResponse.

Use this initializer to create a DescopeSession after the user completes a sign in or sign up flow in the application.

Implementation

factory DescopeSession.fromAuthenticationResponse(AuthenticationResponse authenticationResponse) {
  return DescopeSession(authenticationResponse.sessionToken, authenticationResponse.refreshToken, authenticationResponse.user);
}