diff --git a/client/src/auth/index.js b/client/src/auth/index.js index e5f420d40..1cb418d5a 100644 --- a/client/src/auth/index.js +++ b/client/src/auth/index.js @@ -48,7 +48,8 @@ export const defaultOptions = { }, languageDictionary: { title: 'Platform Dev' - } + }, + avatar:null } export const inviteOptions = { @@ -180,9 +181,6 @@ class Auth { alias: authResult.idTokenPayload.nickname } setItem('user', JSON.stringify(user)) - if (window.location.href.includes(`callback`)) { - // window.location.href = '/dashboard' - } return true } } @@ -200,9 +198,7 @@ class Auth { alias: response.data.users_Authenticate.alias } setItem('user', JSON.stringify(user)) - if (window.location.href.includes(`callback`)) { - window.location.href = '/' - } + window.location.href = '/' return response.data } catch (err) { return console.log('Sign in or create account error: ', err)