verifySessionCookie method
Implementation
Future<DecodedIdToken> verifySessionCookie(
String sessionCookie, {
bool checkRevoked = false,
}) async {
final isEmulator = app.isUsingEmulator;
final decodedIdToken = await _sessionCookieVerifier.verifyJWT(
sessionCookie,
isEmulator: isEmulator,
);
if (checkRevoked || isEmulator) {
return _verifyDecodedJWTNotRevokedOrDisabled(
decodedIdToken,
AuthClientErrorCode.sessionCookieRevoked,
);
}
return decodedIdToken;
}