peek function

Claims peek({
  1. required Uint8List token,
})

Extracts claims from a CWT without verifying the signature.

Warning: The returned payload is unauthenticated and should not be trusted until verified with verify. Use signer to extract the signer's fingerprint for key lookup.

Implementation

Claims peek({required Uint8List token}) =>
    Claims._decode(ffi.cwtPeek(token: token));