Skip to content

Instantly share code, notes, and snippets.

@heytulsiprasad
Last active June 11, 2021 16:54
Show Gist options
  • Select an option

  • Save heytulsiprasad/0d15c3ddfafbf6ac86f2fc6a342b776a to your computer and use it in GitHub Desktop.

Select an option

Save heytulsiprasad/0d15c3ddfafbf6ac86f2fc6a342b776a to your computer and use it in GitHub Desktop.
API to get the right auth provider for each user
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