Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
CiprianDraghici committed Jul 25, 2024
1 parent 54786dd commit e2b6dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/methods/login/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';
import { getIsLoggedIn } from 'utils/account/getIsLoggedIn';
import { getAddress } from 'utils/account/getAddress';

async function normalLogin(provider: IProvider) {
async function loginWithoutNativeToken(provider: IProvider) {
await provider.login();

const address = provider.getAddress?.();
Expand Down Expand Up @@ -107,5 +107,5 @@ export const login = async ({
return await loginWithNativeToken(provider, nativeAuthConfig);
}

return await normalLogin(provider);
return await loginWithoutNativeToken(provider);
};

0 comments on commit e2b6dc6

Please sign in to comment.