-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add logout button * Use constants for property save/load * Correctly config type checking * Config biome * Validate token expire time
- Loading branch information
1 parent
46330a3
commit 7ea3c81
Showing
7 changed files
with
78 additions
and
40 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
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,13 @@ | ||
import * as v from "valibot"; | ||
|
||
export const refreshTokenSchema = v.object({ | ||
access_token: v.string(), | ||
expires_in: v.number(), | ||
membership_id: v.string(), | ||
refresh_expires_in: v.number(), | ||
refresh_token: v.string(), | ||
time_stamp: v.optional(v.string([v.isoTimestamp()])), | ||
token_type: v.string(), | ||
}); | ||
|
||
export type RefreshToken = v.Output<typeof refreshTokenSchema>; |
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,5 @@ | ||
// I want to export a name space 'storage' that has several constants such as 'current_ID' and 'auth_token' that are used in the native_gg/src/authentication/AuthService.ts file. I will use the 'export' keyword to export the name space 'storage' and then use the 'export' keyword to export the constants 'current_ID' and 'auth_token' from the name space 'storage'. | ||
export const Store = { | ||
current_user_ID: "current_user_ID", | ||
_refresh_token: "_refresh_token", | ||
}; |
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