Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/dart_firebase_admin/lib/src/auth/token_verifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ class DecodedIdToken {
required this.picture,
required this.sub,
required this.uid,
required this.payload,
});

@internal
Expand All @@ -334,6 +335,7 @@ class DecodedIdToken {
picture: map['picture'] as String?,
sub: map['sub']! as String,
uid: map['sub']! as String,
payload: map,
);
}

Expand Down Expand Up @@ -408,11 +410,9 @@ class DecodedIdToken {
/// convenience, and is set as the value of the [`sub`](#sub) property.
String uid;

/**
* Other arbitrary claims included in the ID token.
*/
// TODO allow any key
// [key: string]: any;
/// Allow access to other, custom claims by exposing the original payload
Map<String,Object?> payload;

}

/// User facing token information related to the Firebase ID token.
Expand Down