You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the included schemes doesn't match your requirements. Creating your own scheme will provide flexibility you need. You can create a new scheme from scratch or extend an existing scheme.
30
+
31
+
> **Note** A list of available scheme methods will be added in future releases.
32
+
33
+
Before creating custom schemes, you will need to add `@nuxtjs/auth` to `transpile`.
34
+
35
+
`nuxt.config.js`
36
+
```js
37
+
build: {
38
+
transpile: ['@nuxtjs/auth']
39
+
}
40
+
```
41
+
42
+
With this set up, you can create your scheme file. We will be using the path below, but you can use a different path if you want.
43
+
44
+
> In this example we will be extending `local` scheme and overriding `fetchUser` method. We will transform the user object before setting it.
0 commit comments