diff --git a/README.md b/README.md index 9ffc367..a07a94c 100644 --- a/README.md +++ b/README.md @@ -321,6 +321,21 @@ You can totally rewrite any of these components locally to implement your own au ### OAuth +If you want to use OAuth, you will have to enable it in your `nuxt.config`: + +```typescript +export default defineNuxtConfig({ + edgeDb: { + oauth: true + } +}) +``` + +That will inject two new components to your app: + +- [`EdgeDbOAuthButton`](./src/runtime/components/EdgeDbOAuthButton.vue) +- [`EdgeDbOAuthCallback`](./src/runtime/components/EdgeDbOAuthCallback.vue) + EdgeDB currently supports [OAuth](https://www.edgedb.com/docs/guides/auth/oauth#oauth) on following providers: - Apple @@ -328,9 +343,6 @@ EdgeDB currently supports [OAuth](https://www.edgedb.com/docs/guides/auth/oauth# - GitHub - Google -- [`EdgeDbOAuthButton`](./src/runtime/components/EdgeDbOAuthButton.vue) -- [`EdgeDbOAuthCallback`](./src/runtime/components/EdgeDbOAuthCallback.vue) - In order to get OAuth working, you will have to visit your EdgeDB Instance UI, via the Nuxt DevTools. Browse to your database and visit "Auth Admin" tab.