Skip to content

Commit 14c33cc

Browse files
committed
loginWithRedirect => loginWithPopup
1 parent f91743d commit 14c33cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MagicBareRnExample/screens/LoginScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export default function LoginScreen(props: { magic: any; web3?: any; }) {
1616
*Google sign in
1717
* */
1818
const magicGoogleSignIn = async () => {
19-
const res = await magic.oauth.loginWithRedirect({ provider: 'google', redirectURI: 'magicbarernexample://' });
19+
const res = await magic.oauth.loginWithPopup({ provider: 'google', redirectURI: 'magicbarernexample://' });
2020
alert(JSON.stringify(res));
2121
}
2222

2323
/**
2424
*Apple sign in
2525
* */
2626
const magicAppleSignIn = async () => {
27-
const res = await magic.oauth.loginWithRedirect({ provider: 'apple', redirectURI: 'magicbarernexample://' });
27+
const res = await magic.oauth.loginWithPopup({ provider: 'apple', redirectURI: 'magicbarernexample://' });
2828
alert(JSON.stringify(res));
2929
}
3030

MagicExpoRNExample/screens/LoginScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ export default function LoginScreen(props: { magic: any; web3?: any; }) {
1717
*Google sign in
1818
* */
1919
const magicGoogleSignIn = async () => {
20-
const res = await magic.oauth.loginWithRedirect({ provider: 'google', redirectURI: Linking.createURL('exp://') });
20+
const res = await magic.oauth.loginWithPopup({ provider: 'google', redirectURI: Linking.createURL('exp://') });
2121
alert(JSON.stringify(res));
2222
}
2323

2424
/**
2525
*Apple sign in
2626
* */
2727
const magicAppleSignIn = async () => {
28-
const res = await magic.oauth.loginWithRedirect({ provider: 'apple', redirectURI: Linking.createURL('exp://') });
28+
const res = await magic.oauth.loginWithPopup({ provider: 'apple', redirectURI: Linking.createURL('exp://') });
2929
alert(JSON.stringify(res));
3030
}
3131

0 commit comments

Comments
 (0)