Skip to content

Commit

Permalink
make the jwt on zipper.run last for 1 hour (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinr authored Jan 16, 2024
1 parent 293422d commit 1300f1d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/zipper.dev/src/utils/jwt-utils.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { User } from '@prisma/client';
import { JwtPayload, sign, verify } from 'jsonwebtoken';
import { Session } from 'next-auth';
import {
SessionOrganizationMembership,
SessionUser,
} from '~/pages/api/auth/[...nextauth]';
import { SessionOrganizationMembership } from '~/pages/api/auth/[...nextauth]';

const JWT_ACCESS_TOKEN_EXPIRY = '15m';
const JWT_ACCESS_TOKEN_EXPIRY = '1h';
const JWT_REFRESH_TOKEN_EXPIRY = '7d';

export const generateAccessToken = (
Expand Down

0 comments on commit 1300f1d

Please sign in to comment.