Commit 2bad7c04 authored by Tifenn Guillas's avatar Tifenn Guillas

Fix SQ bug + smelly code

parent 9d5fa6a3
......@@ -105,7 +105,7 @@ export class AuthEffects {
parseJWTAction$ = this.actions$.pipe(
ofType(authActions.PARSE_JWT),
switchMap((action: authActions.ParseJwtAction) => {
const jwt = jwt_decode(action.payload) as any;
const jwt = jwt_decode(action.payload);
if (environment.ssoName === 'auth0') {
return of({ type: '[No Action] ' + authActions.PARSE_JWT });
} else {
......
......@@ -55,11 +55,9 @@ export class AuthService {
/**
* Logs in user.
*
* @return Observable<void>
*/
doLogin(): Observable<void> {
return of(this.oidcSecurityService.authorize());
doLogin() {
this.oidcSecurityService.authorize();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment