(value: string | null | undefined)
| 54 | |
| 55 | /** Decode a cookie VALUE back into a hint; null for anything malformed. */ |
| 56 | export const decodeAuthHint = (value: string | null | undefined): AuthHint | null => { |
| 57 | if (!value) return null; |
| 58 | return decodeUriComponentOption(value).pipe(Option.flatMap(decodeAuthHintJson), Option.getOrNull); |
| 59 | }; |
| 60 | |
| 61 | // ── Browser-side cookie maintenance (AuthProvider) ─────────────────────────── |
| 62 |
no outgoing calls
no test coverage detected