Options

app.config.ts
export default defineAppConfig({    // ...    supauth: {        /// Options    },})

confirm

Enable if you have email confirmation on.

Default: false

To check this setting, go to Authentication > Providers > Email in your project's dashboard.

redirect

The path you want to redirect your users after login.

Default: '/'

providers

The oauth providers you want to enable. List of providers.

We recommend enabling as maximum 4 providers to avoid overloading the interface.

Default: false

Example: ['google', 'github']

legalAdvice

Legal links to show below the auth forms. you can set it to false to don't show any legal advice.

Default: false

Options:

  • privacy: path to your privacy policy.
  • terms: path to your terms and conditions of use.

Example:

{    privacy: '/privacy-policy',    terms: '/terms-and-conditions'}

Full example of configuration

app.config.ts
export default defineAppConfig({    // ...    supauth: {        confirm: true,        redirect: '/dashboard',        providers: ['google', 'github'],        legalAdvice: {            privacy: '/privacy-policy',            terms: '/terms-and-conditions',        },    },})