Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
simeng-li committed Sep 23, 2024
1 parent b608b39 commit 71b7ddb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/rn/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Prompt,
StandardLogtoClient,
createRequester,
SignInOptions,
type SignInOptions,
type InteractionMode,
type LogtoConfig,
} from '@logto/client';
Expand Down Expand Up @@ -67,7 +67,6 @@ export class LogtoClient extends StandardLogtoClient {
case 'sign-out': {
break;
}
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check -- just in case
default: {
throw new LogtoNativeClientError('navigation_purpose_not_supported');
}
Expand Down Expand Up @@ -136,11 +135,9 @@ export class LogtoClient extends StandardLogtoClient {
options: SignInOptions | string,
interactionMode?: InteractionMode
): Promise<void> {
if (typeof options === 'string') {
await super.signIn(options, interactionMode);
} else {
await super.signIn(options);
}
await (typeof options === 'string'
? super.signIn(options, interactionMode)
: super.signIn(options));

if (this.authSessionResult?.type !== 'success') {
throw new LogtoNativeClientError('auth_session_failed');
Expand Down

0 comments on commit 71b7ddb

Please sign in to comment.