-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add provider_credential snippets for the social Idps that don't have …
…it. (#253)
- Loading branch information
1 parent
e2a9d33
commit 1c4c683
Showing
11 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script src="https://www.gstatic.com/firebasejs/x.x.x/firebase.js"></script> | ||
<script> | ||
// Initialize Auth | ||
const config = { | ||
apiKey: "...", | ||
authDomain: "my-app-12345.firebaseapp.com" | ||
}; | ||
firebase.initializeApp(config); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
snippets/auth-next/facebook/auth_facebook_provider_credential.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This snippet file was generated by processing the source file: | ||
// ./auth-next/facebook.js | ||
// | ||
// To update the snippets in this file, edit the source and then run | ||
// 'npm run snippets'. | ||
|
||
// [START auth_facebook_provider_credential_modular] | ||
import { FacebookAuthProvider } from "firebase/auth"; | ||
|
||
const credential = FacebookAuthProvider.credential(accessToken); | ||
// [END auth_facebook_provider_credential_modular] |
11 changes: 11 additions & 0 deletions
11
snippets/auth-next/google-signin/auth_google_provider_credential.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This snippet file was generated by processing the source file: | ||
// ./auth-next/google-signin.js | ||
// | ||
// To update the snippets in this file, edit the source and then run | ||
// 'npm run snippets'. | ||
|
||
// [START auth_google_provider_credential_modular] | ||
import { GoogleAuthProvider } from "firebase/auth"; | ||
|
||
const credential = GoogleAuthProvider.credential(idToken); | ||
// [END auth_google_provider_credential_modular] |
11 changes: 11 additions & 0 deletions
11
snippets/auth-next/twitter/auth_twitter_provider_credential.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This snippet file was generated by processing the source file: | ||
// ./auth-next/twitter.js | ||
// | ||
// To update the snippets in this file, edit the source and then run | ||
// 'npm run snippets'. | ||
|
||
// [START auth_twitter_provider_credential_modular] | ||
import { TwitterAuthProvider } from "firebase/auth"; | ||
|
||
const credential = TwitterAuthProvider.credential(accessToken, secret); | ||
// [END auth_twitter_provider_credential_modular] |