Skip to content
rw3iss Auth

auth-shared

@rw3iss/auth-shared — source-only TS types shared by the browser SDK and every backend SDK. Grouped by feature so DTOs sit next to their domain.

Core wire types

User, AuthResponse, JWT payloads — the load-bearing shapes for every auth call.

Interfaces

JWT claims & tokens

Decoded claims, refresh / service token payloads.

Interfaces

Type aliases

Sessions

Active session records + logout payloads.

Password lifecycle

Change-password + reset-password DTOs and claims.

Two-factor & email verification

TOTP enrollment/disable and email-verification DTOs.

Interfaces

SSO start/callback/exchange + magic-link payloads.

Organizations

Org records, memberships, roles, invitations.

Interfaces

Admin & impersonation

User lookup, hard delete, impersonation, assignable permissions.

Interfaces

Audit log

Audit-log entries, queries, and results.

Error envelopes

Wire-shape error payloads + typed envelopes.

Permissions & policies

Permission manifests, registration-policy payloads.

Constants & misc

Re-exported constants and one-off types.

Functions

Interfaces

Type aliases

Variables