Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.32 KB

authorization-identity.md

File metadata and controls

42 lines (30 loc) · 1.32 KB

@pegma/authorization-identity

Generated from the public declaration entry point packages/identity-link/dist/index.d.ts. Internal modules are intentionally excluded.

identityLinkKeyFromVerifiedIdentityClaims

Kind: function

Projects already-verified first-party identity claims into an authorization identity-link key.

This function does not authenticate a session or resolve a principal. It accepts only the exact verified-claims shape and deliberately omits contact data and verification evidence from its frozen result. Descriptor validation does not execute ordinary-object getters; portable JavaScript reflection may execute proxy traps, so trusted callers should pass a plain claims snapshot.

export declare function identityLinkKeyFromVerifiedIdentityClaims(
  claims: VerifiedIdentityClaims,
): IdentityLinkKey;

VerifiedIdentityClaims

Kind: interface

The verified first-party identity claims projected by this adapter.

This structural contract matches @pegma/identity without making either package depend on the other. Email remains identity-side contact evidence and never enters an authorization link key.

export interface VerifiedIdentityClaims {
  readonly issuer: string;
  readonly subject: PrincipalId;
  readonly emailVerified: true;
}