forked from zmc/pulpito-ng
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add lib/teuthologyAPI.ts and login with github
1. redirect to teuthology API's login 2. AppBar uses cookie data to show username Signed-off-by: Vallari <[email protected]>
- Loading branch information
Showing
3 changed files
with
71 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { useQuery } from "@tanstack/react-query"; | ||
|
||
const TEUTHOLOGY_API_SERVER = | ||
import.meta.env.VITE_TEUTHOLOGY_API || ""; | ||
|
||
function githubLogin() { | ||
window.location.replace(`${TEUTHOLOGY_API_SERVER}/login`); | ||
} | ||
|
||
export { | ||
githubLogin, | ||
} |