fix: adding access token to storage regardless of scope
This commit is contained in:
@@ -95,9 +95,10 @@ export const AuthenticationSteps = (): JSX.Element => {
|
||||
tokenResponse: GenerateTokenResponse,
|
||||
) => {
|
||||
setMemoryTokenRes(tokenResponse);
|
||||
if (authFactory.isCurrentApplication()) {
|
||||
login(tokenResponse);
|
||||
}
|
||||
// TODO: For now both application scopes can have their tokens
|
||||
// later we need to discuss this base on business plan and change it
|
||||
// if (authFactory.isCurrentApplication()) {}
|
||||
login(tokenResponse);
|
||||
|
||||
if (loginResult.registeredWithOutPhoneNumber) {
|
||||
setCurrentStep('addPhoneNumber');
|
||||
|
||||
Reference in New Issue
Block a user