mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
5 lines
169 B
TypeScript
5 lines
169 B
TypeScript
import { jwtVerify } from "jose";
|
|
|
|
export const verifyJwt = async (jwt: string) => {
|
|
return await jwtVerify(jwt, new TextEncoder().encode(process.env.JWT_SECRET));
|
|
};
|