Skip to content

Commit c774f04

Browse files
committed
GH-19: Document the compatibility with REST APIs
1 parent 7b5457f commit c774f04

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/references/index.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ the [documentation](https://python-social-auth.readthedocs.io/en/latest/backends
1313

1414
## SSR & REST APIs
1515

16-
::: tip Ticket #19
17-
18-
This upcoming feature is under development and will be available in the next release. You can track the progress in
19-
the [#19](https://github.com/pysnippet/fastapi-oauth2/issues/19) issue.
20-
21-
:::
16+
It is compatible with both SSR and REST APIs. It means you can integrate it into your FastAPI templates and REST APIs.
17+
By default, the `enable_ssr` parameter of the primary [configuration](/integration/configuration#oauth2config) is set
18+
to `True`, which means that the application uses server-side rendering using Jinja2 templates and saves the access token
19+
in the cookies. If you want to use it in your REST APIs, you should set the `enable_ssr` parameter to `False` and save
20+
the access token on the client side.
2221

2322
## CSRF protection
2423

0 commit comments

Comments
 (0)