Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method BasicCredentials.parse
import { BasicCredentials } from "https://deno.land/x/authlete_deno@v1.2.3/src/web/basic_credentials.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}_".