-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store current user in sweet state (#203)
* add current user to data store * fetch data about current user if logged in * add files * add claims to the app state * refactor * shoreten implementation * update userclaims type
- Loading branch information
1 parent
c426ace
commit f14ddb4
Showing
3 changed files
with
62 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { components } from "./__generated__/schema" | ||
|
||
export type UserAdditionalInfo = components["schemas"]["UserAdditionalInfo"] | ||
|
||
export type UserClaims = { | ||
admin?: boolean | ||
member?: boolean | ||
} |
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