Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 91df357

Browse files
committed
remove logging adding a throw
1 parent 2ab6576 commit 91df357

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/expo/src/components/SignInWithOAuth.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const SignInWithOAuth = () => {
3232
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
3333
// @ts-ignore
3434
const { type, params } = result || {};
35-
console.log(type);
3635

3736
if (type !== "success") {
3837
throw "Something went wrong during the OAuth flow. Try again.";
@@ -46,8 +45,6 @@ const SignInWithOAuth = () => {
4645
const { createdSessionId } = signIn;
4746

4847
if (!createdSessionId) {
49-
console.log("no session id");
50-
console.log(signIn);
5148
if (signIn.firstFactorVerification.status === "transferable") {
5249
console.log("Didn't have an account transferring");
5350

@@ -58,6 +55,9 @@ const SignInWithOAuth = () => {
5855
await signUp.reload({ rotatingTokenNonce });
5956

6057
const { createdSessionId } = signUp;
58+
if (!createdSessionId) {
59+
throw "Something went wrong during the Sign up OAuth flow. Please ensure that all sign up requirements are met.";
60+
}
6161
await setSession(createdSessionId);
6262

6363
return;

0 commit comments

Comments
 (0)