Skip to main content

Variable: oauthModels

const oauthModels: object

Defined in: packages/auth-postgresdb/src/models/index.ts:19

The OAuth data model, ready to register alongside the application's own models so ttoss-postgresdb sync and erd cover these tables like any other instead of them being a side-channel schema the CLI cannot see.

Type Declaration

OAuthAuthCode

OAuthAuthCode: typeof OAuthAuthCode

OAuthClient

OAuthClient: typeof OAuthClient

OAuthConsent

OAuthConsent: typeof OAuthConsent

OAuthRefreshToken

OAuthRefreshToken: typeof OAuthRefreshToken

Example

import { oauthModels } from '@ttoss/auth-postgresdb';
import { initialize } from '@ttoss/postgresdb';

export const db = await initialize({ models: { ...oauthModels, User } });