-
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.
task/WG-366: update react frontend to use tapisv3 (#250)
* Add jwt-decode package * Update authflow to use Geoapi * Update auth/headers for making requests * Update call to systems * Fix unit test * Update some packages * Navigate to project on click * Refactor to ensure user has valid tapis token * Refactor updating tapis token * Add missing index.ts * Add auth utils tests
- Loading branch information
1 parent
dedc5c8
commit 32ec1ec
Showing
25 changed files
with
445 additions
and
289 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { AuthState } from '../types'; | ||
|
||
// Convert the timestamp to a Date object | ||
const expiresAtDate = new Date(3153600000000); //2070 | ||
|
||
export const authenticatedUser: AuthState = { | ||
user: { | ||
username: 'user', | ||
email: '[email protected]', | ||
}, | ||
authToken: { | ||
token: 'auth-token', | ||
expires: 3153600000000, // 2070 | ||
expiresAt: expiresAtDate.toISOString(), | ||
}, | ||
}; | ||
|
||
|
Oops, something went wrong.