Commit 86548498 authored by Chris Hines's avatar Chris Hines
Browse files

narrowing down the problem

parent 536b2269
Pipeline #7539 passed with stages
in 2 minutes and 55 seconds
......@@ -135,6 +135,7 @@ export class AuthorisationService {
storeToken(frag: string) {
console.log('storing the token fragment');
if (frag === undefined || frag == null) {
console.log('framgned not defined, not storing');
return;
}
let tokenmatch = null;
......@@ -154,6 +155,9 @@ export class AuthorisationService {
//Verify that the state matched the nonce we used when initiating login
let tuple = JSON.parse(localStorage.getItem('authservice'));
if (tuple == null) {
console.log('token found, but no authService defined');
let data = localStorage.getItem('authservice');
console.log(data);
return
}
if (tuple[1] != state) {
......
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