Credential.fromRequest
Extract a Credential from a Request
Extracts the Credential from a Request's Authorization header.
Usage
import { } from 'mppx'
export async function (: Request) {
const = .()
// ...
}Return type
type ReturnType = Credential<payload>The deserialized Credential object.
Parameters
request
- Type:
Request
The HTTP request.