Last active
June 11, 2021 16:54
-
-
Save heytulsiprasad/0d15c3ddfafbf6ac86f2fc6a342b776a to your computer and use it in GitHub Desktop.
API to get the right auth provider for each user
This file contains hidden or 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
| export const getAuthProvider = async (email: string) => { | |
| const response = await fetch(`${backendUrl}/auth-provider?email=${email}`, { | |
| method: "GET", | |
| headers: { | |
| "Content-type": "application/json" | |
| }, | |
| credentials: "include" | |
| }); | |
| return response.json(); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment