Skip to content

Commit 66aa58e

Browse files
committed
chore(readme): up
1 parent 0542345 commit 66aa58e

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,28 @@ You can totally rewrite any of these components locally to implement your own au
321321

322322
### OAuth
323323

324+
If you want to use OAuth, you will have to enable it in your `nuxt.config`:
325+
326+
```typescript
327+
export default defineNuxtConfig({
328+
edgeDb: {
329+
oauth: true
330+
}
331+
})
332+
```
333+
334+
That will inject two new components to your app:
335+
336+
- [`EdgeDbOAuthButton`](./src/runtime/components/EdgeDbOAuthButton.vue)
337+
- [`EdgeDbOAuthCallback`](./src/runtime/components/EdgeDbOAuthCallback.vue)
338+
324339
EdgeDB currently supports [OAuth](https://www.edgedb.com/docs/guides/auth/oauth#oauth) on following providers:
325340

326341
- Apple
327342
- Azure (Microsoft)
328343
- GitHub
329344
- Google
330345

331-
- [`EdgeDbOAuthButton`](./src/runtime/components/EdgeDbOAuthButton.vue)
332-
- [`EdgeDbOAuthCallback`](./src/runtime/components/EdgeDbOAuthCallback.vue)
333-
334346
In order to get OAuth working, you will have to visit your EdgeDB Instance UI, via the Nuxt DevTools.
335347

336348
Browse to your database and visit "Auth Admin" tab.

0 commit comments

Comments
 (0)