Skip to main content
Latest
method BasicCredentials.parse
Re-export
import { BasicCredentials } from "https://deno.land/x/authlete_deno@v1.2.10/mod.ts";

Parse Authorization header for Basic authentication.

Parameters

input: string | null

The value of Authorization header. Expected inputs are either "Basic _{Base64-Encoded-UserID-and-Password}_", or "_{Base64-Encoded-UserID-and-Password}_".

Returns

If input was successfully parsed, parsed credentials is returned. Otherwise, null is returned.