Permalink
Browse files

Formatting

  • Loading branch information...
Justin Wilaby Justin Wilaby
Justin Wilaby authored and Justin Wilaby committed Oct 11, 2018
1 parent 0a85d92 commit 9a4388995b106e87f5dbb1141486a084143880e6
Showing with 4 additions and 4 deletions.
  1. +4 −4 packages/app/main/src/services/azureAuthWorkflowService.ts
@@ -79,7 +79,7 @@ export class AzureAuthWorkflowService {
const result: AuthResponse = {} as AuthResponse;
try {
const { history = [] }: { history: string[] } = browserWindow.webContents as any;
uri = history[ history.length - 1 ] || '';
uri = history[history.length - 1] || '';
} catch (e) {
clearInterval(interval);
result.error = e.message;
@@ -92,8 +92,8 @@ export class AzureAuthWorkflowService {
const values = uri.substring(idx + 1).split('&');
const len = values.length;
for (let i = 0; i < len; i++) {
const [ key, value ] = values[ i ].split(/[=]/);
result[ key ] = value;
const [key, value] = values[i].split(/[=]/);
result[key] = value;
}
clearInterval(interval);
resolve(result);
@@ -246,7 +246,7 @@ export class AzureAuthWorkflowService {
}
private static async validateJWT(token: string): Promise<boolean> {
const [ header ] = token.split('.');
const [header] = token.split('.');
const headers: { alg: string, kid: string, x5t: string } = JSON.parse(Buffer.from(header, 'base64').toString());
try {

0 comments on commit 9a43889

Please sign in to comment.