Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
10
CMyTapper/robucks-front/app/[id]/actions.ts
Normal file
10
CMyTapper/robucks-front/app/[id]/actions.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
'use server';
|
||||
import { cookies } from 'next/headers';
|
||||
|
||||
export async function setNewToken(token: string) {
|
||||
cookies().set('token', token);
|
||||
}
|
||||
|
||||
export async function setNowDate() {
|
||||
cookies().set('dateLifetimeJwt', new Date().toDateString());
|
||||
}
|
||||
Reference in New Issue
Block a user