-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ar(fix) pro cache * ar(fix) [DPCP-71]: CSRF Fix * ar(fix) [DPCP-71]: CSRF Fix * ar(fix) [DPCP-71]: CSRF Fix --------- Signed-off-by: Angelo Reale <[email protected]>
- Loading branch information
1 parent
d7b2b9b
commit a91bbaa
Showing
5 changed files
with
15 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,3 @@ License: HPL3-ECO-AND-ANC 2021—Present | |
Purizu di Angelo Reale Caldeira de Lemos dba DreamPip | ||
|
||
IT02925300903 | ||
|
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
// actions.ts | ||
'use server'; | ||
import { redirect } from 'next/navigation'; | ||
import { cookies } from 'next/headers'; | ||
|
||
export async function navigate(url: string) { | ||
redirect(url); | ||
} | ||
|
||
export async function setCookie({ name, value }: { name: string; value: string }) { | ||
// Set cookie | ||
cookies().set(name, value); | ||
} |
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