UNPKG

@mercury-labs/nest-auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

13 lines 476 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeBearerFromToken = void 0; function removeBearerFromToken(token, apiTokenPrefix = 'bearer ') { if (!token) return token; if (token.toLowerCase().startsWith(apiTokenPrefix)) { return token.substring(apiTokenPrefix.length); } return token; } exports.removeBearerFromToken = removeBearerFromToken; //# sourceMappingURL=remove-bearer-from-token.helper.js.map