How aulafirdaus/uauth-nextjs-client works
UAuth Next.js Client is a small Auth.js OIDC provider factory. A developer supplies issuer and client credentials; Auth.js consumes its provider configuration to run the OIDC flow, applying the configured PKCE, state, nonce, and scopes. Auth.js then uses the profile mapper to normalize identity and role/group claims. The README also documents forwarding roles and groups through application-defined callbacks; those callbacks are not implemented in this package. The single source file supports this map; runtime behavior inside Auth.js is represented only where the README or provider configuration establishes it.
Main entry points: index.ts Provider factory
Components 6
OIDC provider
- Provider factory
src/index.ts - OIDC settings
src/index.ts - Profile mapper
src/index.ts
Other components
- Developer
- Auth.js
- UAuth IdP
Connections 7
- Developer → Provider factory: configures
- Provider factory → Auth.js: returns config
- Auth.js → UAuth IdP: runs OIDC
- Auth.js → OIDC settings: uses settings
- UAuth IdP → Auth.js: returns claims
- Auth.js → Profile mapper: invokes
- Profile mapper → Auth.js: returns user