UNPKG

@swaggerexpert/cookie

Version:

RFC 6265 compliant cookie parser, validator and serializer.

6 lines 226 B
const base64Decoder = input => { const binaryString = atob(input); const bytes = new Uint8Array([...binaryString].map(char => char.charCodeAt(0))); return new TextDecoder().decode(bytes); }; export default base64Decoder;