Refactor issueToken function for issueing the refresh token

This commit is contained in:
Rushi Gandhi committed 2024-10-16 12:45:31 +05:30
1 parent cd0160f421
commit 29ce8bb116
2 files changed
+27 -27

No files matched your search

+6
View File
@@ -27,7 +27,13 @@ const getTokenFromHeaders = (headers) => {
return parts[1];
};
const tokenType = Object.freeze({
ACCESS_TOKEN: "Access token",
REFRESH_TOKEN: "Refresh token"
});
module.exports = {
ParseBoolean,
getTokenFromHeaders,
tokenType,
};