UNPKG

@dataroadinc/setup-auth

Version:

CLI tool and programmatic API for automated OAuth setup across cloud platforms

34 lines (33 loc) 965 B
export interface SuccessOrError { success: boolean; error?: string; } export interface RedirectUrlsConfig { gcpOauthProjectId: string; clientId: string; additionalUrls?: string[]; wildcardPatterns?: string[]; } export type OAuthProvider = "gcp" | "github" | "azure" | "linkedin"; export type PlatformType = "vercel" | "opennext" | "netlify"; export interface SetupAuthGlobalOptions { oauthBrandName?: string; oauthProvider?: OAuthProvider; platform?: PlatformType; vercelProjectName?: string; vercelAccessToken?: string; azureOauthClientId?: string; azureOauthSecret?: string; githubOauthId?: string; githubOauthSecret?: string; gcpOauthProjectId?: string; gcpOauthQuotaProjectId?: string; gcpOauthOrganizationId?: string; gcpOauthAllowedDomains?: string; nextAuthUrl?: string; } export interface UpdateResult { success: boolean; error?: string; redirectUris?: string[]; }