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 54ae4af commit eefb5bbCopy full SHA for eefb5bb
packages/realtime_client/lib/src/realtime_client.dart
@@ -415,8 +415,8 @@ class RealtimeClient {
415
Map<String, dynamic>? parsed;
416
try {
417
final decoded =
418
- utf8.decode(base64Url.decode(tokenToSend.split('.')[1]));
419
- parsed = json.decode(decoded);
+ base64.decode(base64.normalize(tokenToSend.split('.')[1]));
+ parsed = json.decode(utf8.decode(decoded));
420
} catch (e) {
421
// ignore parsing errors
422
}
0 commit comments