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,
|
tokenResponse: GenerateTokenResponse,
|
||||||
) => {
|
) => {
|
||||||
setMemoryTokenRes(tokenResponse);
|
setMemoryTokenRes(tokenResponse);
|
||||||
if (authFactory.isCurrentApplication()) {
|
// 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);
|
login(tokenResponse);
|
||||||
}
|
|
||||||
|
|
||||||
if (loginResult.registeredWithOutPhoneNumber) {
|
if (loginResult.registeredWithOutPhoneNumber) {
|
||||||
setCurrentStep('addPhoneNumber');
|
setCurrentStep('addPhoneNumber');
|
||||||
|
|||||||
Reference in New Issue
Block a user