mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-13 17:06:48 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
5
utils/auth.ts
Normal file
5
utils/auth.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { jwtVerify } from "jose";
|
||||
|
||||
export const verifyJwt = async (jwt: string) => {
|
||||
return await jwtVerify(jwt, new TextEncoder().encode(process.env.JWT_SECRET));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue