File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
324339EdgeDB 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-
334346In order to get OAuth working, you will have to visit your EdgeDB Instance UI, via the Nuxt DevTools.
335347
336348Browse to your database and visit "Auth Admin" tab.
You can’t perform that action at this time.
0 commit comments