disable GH and MS auth - not working native
This commit is contained in:
@@ -69,24 +69,28 @@ const providers: Provider[] = [
|
|||||||
// mode: 'redirect'
|
// mode: 'redirect'
|
||||||
// })
|
// })
|
||||||
// const provider = new OAuthProvider('microsoft.com')
|
// const provider = new OAuthProvider('microsoft.com')
|
||||||
// // const credential = provider.credential({
|
// const credential = provider.credential({
|
||||||
// // idToken: result.credential?.idToken,
|
// idToken: result.credential?.idToken,
|
||||||
// // rawNonce: result.credential?.nonce
|
// rawNonce: result.credential?.nonce
|
||||||
// // })
|
// })
|
||||||
// if (result.credential) {
|
// await signInWithCredential(auth, credential)
|
||||||
// const credential = provider.credential(result.credential)
|
// }
|
||||||
// console.log(credential)
|
// },
|
||||||
// try {
|
// {
|
||||||
// const user = await signInWithCredential(auth, credential)
|
// name: 'github',
|
||||||
// console.log('user', user)
|
// icon: 'fa-brands fa-github',
|
||||||
// } catch (error: any) {
|
// signin: async () => {
|
||||||
// console.log(error)
|
// const result = await FirebaseAuthentication.signInWithGithub({
|
||||||
// console.log('message', error.message)
|
// mode: 'redirect'
|
||||||
// }
|
// })
|
||||||
// }
|
// const provider = new OAuthProvider('github.com')
|
||||||
|
// const credential = provider.credential({
|
||||||
|
// idToken: result.credential?.idToken,
|
||||||
|
// rawNonce: result.credential?.nonce
|
||||||
|
// })
|
||||||
|
// await signInWithCredential(auth, credential)
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// Microsoft users can't be signed in manually so this does not work on native
|
|
||||||
]
|
]
|
||||||
// type Provider = (typeof providers)[number]
|
// type Provider = (typeof providers)[number]
|
||||||
const signInWithProvider = async (provider: Provider) => {
|
const signInWithProvider = async (provider: Provider) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user