{"library":"netlify-auth-providers","title":"Netlify Auth Providers","description":"Netlify Auth Providers is an alpha-stage library (v1.0.0-alpha5) for authenticating with Netlify's external OAuth providers. It provides a simple client that handles the authentication flow, token storage, and refresh. As an alpha release, the API is unstable and may change without notice. Key differentiators include direct integration with Netlify's Identity service and minimal configuration required.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install netlify-auth-providers"],"cli":null},"imports":["import NetlifyAuthProviders from 'netlify-auth-providers'","import { Authenticator } from 'netlify-auth-providers'","import { TokenStore } from 'netlify-auth-providers'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import NetlifyAuthProviders from 'netlify-auth-providers';\n\nconst client = new NetlifyAuthProviders({\n  provider: 'github',\n  clientId: process.env.GITHUB_CLIENT_ID ?? '',\n  redirectUri: 'http://localhost:8888/callback'\n});\n\n// Start OAuth flow\nclient.authenticate();\n\n// After redirect, handle callback\nclient.handleCallback();\n\n// Get access token\nconst token = client.getToken();\nconsole.log({ token });","lang":"typescript","description":"Demonstrates initializing the client, starting OAuth, handling callback, and retrieving token.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}