Skip to content

Commit

Permalink
refactor: remove loginRoute from auth config
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 30, 2023
1 parent 18709e5 commit 722ae47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/auth/define_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export type ResolvedAuthConfig<
KnownGuards extends Record<string, GuardFactory | GuardConfigProvider<GuardFactory>>,
> = {
default: keyof KnownGuards
loginRoute: string
guards: {
[K in keyof KnownGuards]: KnownGuards[K] extends GuardConfigProvider<infer A>
? A
Expand All @@ -44,7 +43,6 @@ export function defineConfig<
KnownGuards extends Record<string, GuardFactory | GuardConfigProvider<GuardFactory>>,
>(config: {
default: keyof KnownGuards
loginRoute: string
guards: KnownGuards
}): ConfigProvider<ResolvedAuthConfig<KnownGuards>> {
return configProvider.create(async (app) => {
Expand All @@ -62,7 +60,6 @@ export function defineConfig<

return {
default: config.default,
loginRoute: config.loginRoute,
guards: guards,
} as ResolvedAuthConfig<KnownGuards>
})
Expand Down

0 comments on commit 722ae47

Please sign in to comment.