handling all of the stuff with header logout and handling better jwttoken
This commit is contained in:
@@ -8,7 +8,6 @@ enum Channels {
|
||||
}
|
||||
|
||||
export enum STORE_ITEMS {
|
||||
GOOGLE_AUTH_TOKENS = "GOOGLE_AUTH_TOKENS",
|
||||
AUTH_SESSION_JWT = "AUTH_SESSION_JWT",
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,5 @@ const myApiOauth = new ElectronGoogleOAuth2(
|
||||
export async function handleGoogleLogin() {
|
||||
const tokens = await myApiOauth.openAuthWindowAndGetTokens();
|
||||
|
||||
store.set(STORE_ITEMS.GOOGLE_AUTH_TOKENS, tokens);
|
||||
|
||||
browserWindow.webContents.send(Channels.GOOGLE_AUTH_TOKENS, tokens);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user