OAuthSessionManager.fromSession constructor

OAuthSessionManager.fromSession(
  1. OAuthSession session, {
  2. OAuthClient? client,
  3. DPoPSigner? signer,
  4. DPoPNonceCache? nonceCache,
})

Implementation

factory OAuthSessionManager.fromSession(
  final OAuthSession session, {
  final OAuthClient? client,
  final DPoPSigner? signer,
  final DPoPNonceCache? nonceCache,
}) {
  final mgr = OAuthSessionManager(
    client,
    sub: session.sub,
    signer: signer,
    nonceCache: nonceCache,
  ).._session = session;
  return mgr;
}