We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd745c commit b2406d4Copy full SHA for b2406d4
src/editor/jwt.js
@@ -138,19 +138,15 @@ export function decode(jwt) {
138
if (!isValidBase64String(split[1])) {
139
result.warnings.push(strings.warnings.payloadBase64Invalid);
140
}
141
- result.payload = JSON.parse(b64u.decode(split[1]));
142
- } catch (e) {
143
- result.errors = true;
144
- }
+ result.payload = b64u.decode(split[1]);
+ } catch (e) {}
145
146
try {
147
if (!isValidJSON(b64u.decode(split[1]))) {
148
result.warnings.push(strings.warnings.payloadInvalidJSON);
149
- result.payload = b64u.decode(split[1])
150
151
152
153
+ result.payload = JSON.parse(b64u.decode(split[1]))
154
155
return result;
156
0 commit comments