Expand description
What the wire needs of cryptography: SHA-1 for the WebSocket handshake, base64 and HS256 JSON Web Tokens with the claims Hasura reads.
Constants§
- CLAIMS
- The namespace of Hasura’s claims inside a token.
Functions§
- base64
- base64url
- base64url_
decode - sha1
- sign_
token - A token saying its bearer is
subject, the way deeplinks signs them. - verify_
token - The subject of a token this secret signed; an expired, forged or malformed token is an error.
- websocket_
accept Sec-WebSocket-Acceptof aSec-WebSocket-Key.