mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding auth window
This commit is contained in:
parent
884ba47b9b
commit
71d79a4a15
9 changed files with 51 additions and 10 deletions
|
@ -23,8 +23,8 @@ export class HydraApi {
|
|||
return this.userAuth.authToken !== "";
|
||||
}
|
||||
|
||||
static async handleExternalAuth(auth: string) {
|
||||
const { payload } = url.parse(auth, true).query;
|
||||
static async handleExternalAuth(uri: string) {
|
||||
const { payload } = url.parse(uri, true).query;
|
||||
|
||||
const decodedBase64 = atob(payload as string);
|
||||
const jsonData = JSON.parse(decodedBase64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue