mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
[deps] SM: Update typescript-eslint monorepo to v8 (major) (#10601)
* [deps] SM: Update typescript-eslint monorepo to v8 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hinton <hinton@users.noreply.github.com> Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,8 @@ export function decodeJwtTokenToJson(jwtToken: string): any {
|
||||
try {
|
||||
// Attempt to decode from URL-safe Base64 to UTF-8
|
||||
decodedPayloadJSON = Utils.fromUrlB64ToUtf8(encodedPayload);
|
||||
// FIXME: Remove when updating file. Eslint update
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (decodingError) {
|
||||
throw new Error("Cannot decode the token");
|
||||
}
|
||||
@@ -26,6 +28,8 @@ export function decodeJwtTokenToJson(jwtToken: string): any {
|
||||
// Attempt to parse the JSON payload
|
||||
const decodedToken = JSON.parse(decodedPayloadJSON);
|
||||
return decodedToken;
|
||||
// FIXME: Remove when updating file. Eslint update
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (jsonError) {
|
||||
throw new Error("Cannot parse the token's payload into JSON");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user