Skip to content

Instantly share code, notes, and snippets.


JR Saucedo betoflakes

View GitHub Profile
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 / cloudSettings
Last active Aug 10, 2021
Visual Studio Code Settings Sync Gist
View cloudSettings