-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgraded next auth to v5 and now handling guest and protected r…
…outes
- Loading branch information
1 parent
b7c3d3c
commit 59e194b
Showing
8 changed files
with
96 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* v8 ignore start */ | ||
// Stryker disable all | ||
|
||
'use server'; | ||
|
||
import { signInProviderActionFlag } from '@/config/authMisc'; | ||
import ROUTES_ROOTS from '##/config/routes'; | ||
import { signIn } from '@/auth'; | ||
|
||
// eslint-disable-next-line require-await | ||
export async function signInAction() { | ||
'use server'; | ||
await signIn(signInProviderActionFlag, { callbackUrl: ROUTES_ROOTS.DASHBOARD }); | ||
} | ||
|
||
// Stryker restore all | ||
/* v8 ignore stop */ |
This file was deleted.
Oops, something went wrong.