Skip to content

Documentation

@udibo/oauth2 helps you add authentication and authorization to an application. Choose who hosts sign-in first; that determines which parts of the package you need.

Use Udibo's identity service

Udibo hosts the sign-in flow and issues tokens. Your app handles its callback, keeps its own session, and validates access to its API. You do not need to implement password storage, MFA enrollment, or an authorization server.

Private beta: join the waitlist. If you already have access, start with the integration guide.

Then read API protection and environment configuration.

Host authorization for your own app

Your app owns its users, login pages, and persistent storage. The package provides OAuth2 protocol handling and optional identity flows.

  1. Run a complete local example.

  2. Configure your authorization server.

  3. Add login over your database.

  4. Prepare the application for deployment.

Add only the features your application needs:

FeatureGuide
Social or enterprise OIDC loginExternal sign-in
TOTP and recovery codesMFA
Email codes and magic linksPasswordless sign-in
Existing password hashesPassword migration

These guides explain application integrations. Hosted-service administration, commercial platform architecture, and internal Udibo operations are outside this package's documentation.

Testing and reference

Code fences show one of three things: a runnable command, a self-contained example, or integration wiring that explicitly declares app-owned dependencies. A declare const represents something your application must supply; it is not an implementation to paste into production.