@ioloco/oauth
Version:
OAuth 2.0 utility library that provides helper functions for integrating third-party login providers. Designed to simplify the token exchange and user-fetch flows, while leaving API route implementation to the developer.
1 lines • 152 B
JavaScript
async function e({userUrl:e,accessToken:t,tokenType:n}){return(await fetch(e,{headers:{Authorization:`${n} ${t}`}})).json()}export{e as fetchOAuthUser};