What problem does it solve?
This skill guides developers through configuring OAuth authentication providers for a Bknd application, enabling secure user login flows with minimal boilerplate.
Core Features & Use Cases
- Google OAuth: enable Google as an identity provider, obtain client_id and client_secret, and configure bknd.config.ts for the oauth strategy.
- GitHub OAuth: enable GitHub as an identity provider, set redirect URLs, and configure the corresponding bknd.config.ts block.
- Custom OAuth Providers: add bespoke OAuth/OIDC providers using the custom_oauth strategy and supply endpoints, client credentials, and scopes.
- Environment & Frontend Integration: declare credentials in .env and implement frontend login flows to start and complete the OAuth process.
Quick Start
Add an oauth configuration to bknd.config.ts, set up GCP/GitHub client IDs and secrets in .env, and use the frontend login flow to initiate authentication.