Skip to content

Commit 6d34650

Browse files
authored
fix(auth): Refresh tokens now actually work OH MY FUCKING GOD HOW CAN I BE THIS DUMP
@Nachwahl
1 parent d760b22 commit 6d34650

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dashboard/src/util/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import KeycloakProvider from 'next-auth/providers/keycloak';
1010
*/
1111
const refreshAccessToken = async (token: JWT) => {
1212
try {
13-
if (Date.now() > token.refreshTokenExpired) throw Error;
13+
if (Date.now() < token.refreshTokenExpired) throw Error;
1414
const details = {
1515
client_id: process.env.KEYCLOAK_ID,
1616
client_secret: process.env.KEYCLOAK_SECRET,

0 commit comments

Comments
 (0)