20 lines · 517 B · TypeScript
RawDownload
import * as Schema from "effect/Schema"; export const DpopPublicJwk = Schema.Struct({  kty: Schema.Literal("EC"),  crv: Schema.Literal("P-256"),  x: Schema.String.check(Schema.isNonEmpty()),  y: Schema.String.check(Schema.isNonEmpty()),});export type DpopPublicJwk = typeof DpopPublicJwk.Type; export function normalizeDpopHtu(url: string): string | null {  try {    const parsed = new URL(url);    parsed.hash = "";    parsed.search = "";    return parsed.toString();  } catch {    return null;  }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t