processAccessToken method

Future<Session> processAccessToken(
  1. Map<String, dynamic> response
)

Implementation

Future<Session> processAccessToken(Map<String, dynamic> response) async {
  debug("processSession: Processing access token response: $response");
  _session = Session.fromJson(response);
  // Notify session listeners we have a new session.
  _sessionController.add(_session);
  debug("processSession: Access token parsed");
  return storageProvider.saveSession(_session!).then((value) => _session!);
}