Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ protected void signInResult(PluginCall call, ActivityResult result) {
user.put("idToken", account.getIdToken());
user.put("authentication", authentication);

user.put("name", account.getDisplayName());
// Deprecated: Use `user` instead of `displayName`
user.put("displayName", account.getDisplayName());
user.put("email", account.getEmail());
user.put("familyName", account.getFamilyName());
Expand Down
5 changes: 4 additions & 1 deletion src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ declare module '@capacitor/cli' {
export interface User {
id: string;
email: string;

/**
* @deprecated use `name` instead
*/
displayName: string
name: string;
familyName: string;
givenName: string;
Expand Down