(hint: AuthHint)
| 50 | |
| 51 | /** Encode a hint as a wire-ready cookie VALUE (URI-encoded JSON). */ |
| 52 | export const encodeAuthHint = (hint: AuthHint): string => |
| 53 | encodeURIComponent(encodeAuthHintJson(hint)); |
| 54 | |
| 55 | /** Decode a cookie VALUE back into a hint; null for anything malformed. */ |
| 56 | export const decodeAuthHint = (value: string | null | undefined): AuthHint | null => { |
no outgoing calls
no test coverage detected