Skip to content

Instantly share code, notes, and snippets.

View betoflakes's full-sized avatar
🐛
Debugging

JR Saucedo betoflakes

🐛
Debugging
View GitHub Profile
@betoflakes
betoflakes / jwt-payload-parse.dart
Created October 9, 2019 21:00 — forked from hjJunior/jwt-payload-parse.dart
Get payload of JWT token in Dart language
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 August 10, 2021 02:52
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-08-10T02:52:14.252Z","extensionVersion":"v3.4.3"}