Skip to content

Commit dca165b

Browse files
committed
fix(ts): adjust AppOptions (nextauthjs#1815)
1 parent da56171 commit dca165b

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

types/internals/index.d.ts

+14-13
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,22 @@ export type NextAuthSharedOptions =
1414
| "theme"
1515
| "debug"
1616
| "logger"
17+
| "session"
1718

1819
export interface AppOptions
19-
extends Pick<NextAuthOptions, NextAuthSharedOptions> {
20+
extends Required<Pick<NextAuthOptions, NextAuthSharedOptions>> {
21+
providers: AppProvider[]
22+
baseUrl: string
23+
basePath: string
24+
action:
25+
| "providers"
26+
| "session"
27+
| "csrf"
28+
| "signin"
29+
| "signout"
30+
| "callback"
31+
| "verify-request"
32+
| "error"
2033
pkce?: {
2134
code_verifier?: string
2235
/**
@@ -27,18 +40,6 @@ export interface AppOptions
2740
code_challenge_method?: "S256"
2841
}
2942
provider?: AppProvider
30-
providers: AppProvider[]
31-
baseUrl?: string
32-
basePath?: string
33-
action?:
34-
| "providers"
35-
| "session"
36-
| "csrf"
37-
| "signin"
38-
| "signout"
39-
| "callback"
40-
| "verify-request"
41-
| "error"
4243
csrfToken?: string
4344
csrfTokenVerified?: boolean
4445
}

0 commit comments

Comments
 (0)