Skip to content

Instantly share code, notes, and snippets.

View alexandrefsdev's full-sized avatar

Alexandre Silveira alexandrefsdev

  • Transalvador
  • Salvador, BA, Brazil
View GitHub Profile
@alexandrefsdev
alexandrefsdev / HomePage.dart
Created June 17, 2021 19:52 — forked from carzacc/HomePage.dart
Flutter app for JWT tutorial
class HomePage extends StatelessWidget {
HomePage(this.jwt, this.payload);
factory HomePage.fromBase64(String jwt) =>
HomePage(
jwt,
json.decode(
ascii.decode(
base64.decode(base64.normalize(jwt.split(".")[1]))
)