File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11// Copyright 2023-latest the httpland authors. All rights reserved. MIT license.
22// This module is browser compatible.
33
4+ /** Authorization API. */
45export interface Authorization {
6+ /** Authentication scheme. */
57 readonly authScheme : string ;
6- readonly token : string | Record < string , string > | null ;
8+
9+ /** token68 or auth-param. */
10+ readonly token : Token68 | AuthParam | null ;
711}
812
13+ /** Representation of [token68](https://www.rfc-editor.org/rfc/rfc9110.html#auth.params). */
14+ export type Token68 = string ;
15+
16+ /** Pair of name and value.
17+ * Representation of [auth-param](https://www.rfc-editor.org/rfc/rfc9110.html#section-11.2-5).
18+ */
919export interface AuthParam {
1020 readonly [ k : string ] : string ;
1121}
You can’t perform that action at this time.
0 commit comments