File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
MagicBareRnExample/screens
MagicExpoRNExample/screens Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments