Skip to content

Commit

Permalink
fix(expo): error on signin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Dec 2, 2023
1 parent d9def61 commit 48e9438
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/expo/src/components/SignInButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ export default function SignInButton() {

const handleSignInWithDiscordPress = React.useCallback(async () => {
try {
const { createdSessionId, setActive } = await startOAuthFlow();
const { createdSessionId, setActive, authSessionResult } =
await startOAuthFlow();
console.log({ authSessionResult });

if (createdSessionId) {
void setActive?.({ session: createdSessionId });
if (setActive) {
void setActive({ session: createdSessionId });
}
} else {
// Modify this code to use signIn or signUp to set this missing requirements you set in your dashboard.
throw new Error(
Expand Down

0 comments on commit 48e9438

Please sign in to comment.