This repository has been archived by the owner on Nov 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quickish fix to invoke /me endpoint, but wanted to get a version we can deploy that will mainly work. * redwood_token does not exist in Commons, so removed it from User interface and tweaked code that referenced it. * If you are not logged in, /me returns name only, so made avatar and email optional in User interface. To clean up, should remove redwood token references. Also, I don't think we need to be be polling the /me endpoint, and instead rely on #69 to handle the case where the user logs out.
- Loading branch information
Showing
4 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
export interface User { | ||
avatar: string; | ||
email: string; | ||
avatar?: string; | ||
email?: string; | ||
name: string; | ||
redwood_token: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters