Skip to content

Commit b3cb5a0

Browse files
committed
Add isRefreshToken
1 parent 8fb5682 commit b3cb5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Auth/Apiker/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export const isCurrentUserAdmin = async (): Promise<boolean> => {
249249
export const getTokens = (userId: string, expirationInMinutes = AUTH_TOKEN_DURATION_MINS_DEFAULT) => {
250250
const clientId = getClientId();
251251
const token = createJWT({ sub: userId, clientId }, expirationInMinutes);
252-
const refreshToken = createJWT({ sub: userId, clientId });
252+
const refreshToken = createJWT({ sub: userId, clientId, isRefreshToken: true });
253253

254254
return { userId, token, refreshToken };
255255
};

0 commit comments

Comments
 (0)