import type { NuxtError, RequestEvent } from 'nuxt/server'; export type ATProtoProvider = 'bluesky'; export type OAuthProvider = ATProtoProvider | 'atlassian' | 'auth0' | 'authentik' | 'azureb2c' | 'battledotnet' | 'cloudflare' | 'cognito' | 'discord' | 'dropbox' | 'facebook' | 'gitea' | 'github' | 'gitlab' | 'google' | 'hubspot' | 'instagram' | 'kick' | 'keycloak' | 'line' | 'linear' | 'linkedin' | 'mastodon' | 'microsoft' | 'paypal' | 'polar' | 'spotify' | 'seznam' | 'steam' | 'strava' | 'tiktok' | 'twitch' | 'vk' | 'wechat' | 'workos' | 'x' | 'xsuaa' | 'yandex' | 'zitadel' | 'apple' | 'livechat' | 'salesforce' | 'slack' | 'heroku' | 'roblox' | 'okta' | 'ory' | 'shopifyCustomer' | 'oidc' | 'osu' | 'riotgames' | 'box' | 'zendesk' | (string & {}); export type OnError = (event: RequestEvent, error: NuxtError) => unknown; /** * Augment this interface to type the runtime configuration of OAuth providers that are not * shipped with the module, such as providers added by another module. * * ```ts * declare module '#auth-utils' { * interface OAuthRuntimeConfigExtension { * myProvider: { clientId: string, clientSecret: string } * } * } * ``` */ export interface OAuthRuntimeConfigExtension { } export interface OAuthConfig { config?: TConfig; onSuccess: (event: RequestEvent, result: TResult) => unknown; onError?: OnError; }