Make options optional

Revert default routes
Update documentation
This commit is contained in:
René Preuß
2023-04-08 18:26:18 +02:00
parent 1560ae2038
commit 734b495ec0
6 changed files with 25 additions and 35 deletions

View File

@@ -11,16 +11,3 @@ is [not recommended](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-secu
want to use the `token` response type, you need to set it explicitly with `responseType: 'token'` in the
`oauth` configuration. Otherwise, you will use Authorization Code Grant with PKCE by default.
### Refactor default `login` and `callback` routes to `/auth/login`
We nested all authentication related routes under `/auth` prefix, so it aligned with our documentation and
provided a better default configuration. If you want to use the old routes, you need to update your `oauth`
configuration:
```
endpoints: {
login: '/login',
callback: '/login',
},
```