Skip to content

Instantly share code, notes, and snippets.

Avatar
🐛
Debugging

JR Saucedo betoflakes

🐛
Debugging
View GitHub Profile
@betoflakes
betoflakes / jwt-payload-parse.dart
Created Oct 9, 2019 — forked from hjJunior/jwt-payload-parse.dart
Get payload of JWT token in Dart language
View jwt-payload-parse.dart
import 'dart:convert';
Map<String, dynamic> parseJwt(String token) {
final parts = token.split('.');
if (parts.length != 3) {
throw Exception('invalid token');
}
final payload = _decodeBase64(parts[1]);
final payloadMap = json.decode(payload);
@betoflakes
betoflakes / cloudSettings
Last active Aug 10, 2021
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2021-08-10T02:52:14.252Z","extensionVersion":"v3.4.3"}