Skip to content

Commit

Permalink
fix(ts): adjust AppOptions (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Apr 22, 2021
1 parent 543f812 commit e26c5fc
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions types/internals/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,22 @@ export type NextAuthSharedOptions =
| "theme"
| "debug"
| "logger"
| "session"

export interface AppOptions
extends Pick<NextAuthOptions, NextAuthSharedOptions> {
extends Required<Pick<NextAuthOptions, NextAuthSharedOptions>> {
providers: AppProvider[]
baseUrl: string
basePath: string
action:
| "providers"
| "session"
| "csrf"
| "signin"
| "signout"
| "callback"
| "verify-request"
| "error"
pkce?: {
code_verifier?: string
/**
Expand All @@ -27,18 +40,6 @@ export interface AppOptions
code_challenge_method?: "S256"
}
provider?: AppProvider
providers: AppProvider[]
baseUrl?: string
basePath?: string
action?:
| "providers"
| "session"
| "csrf"
| "signin"
| "signout"
| "callback"
| "verify-request"
| "error"
csrfToken?: string
csrfTokenVerified?: boolean
}
Expand Down

1 comment on commit e26c5fc

@vercel
Copy link

@vercel vercel bot commented on e26c5fc Apr 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.