Hi, is it there a nice way to apply auth to pages served by my backend? e.g. openapi.json pages, swagger pages, etc. I would like to add the supertokens auto-token refresh and login page that I get in my regular application (as opposed to just showing a "try refresh token token"). Thanks.
r
rp_st
03/15/2024, 5:40 PM
hey @AngusParsonson im not sure i quite understand this use case. Are you talking about SSR? Or auto generated API docs from your backend framework?
a
AngusParsonson
03/18/2024, 3:40 PM
I'm talking about the automated API docs from my backend. We also serve a static web page for our application's docs which we serve from our backend. These pages show a {"message":"try refresh token"} json if the supertokens token has expired.
r
rp_st
03/18/2024, 4:09 PM
yea, so automated api docs will not be supported fully cause they won't be able to auto refresh the session on the frontend. Since those automated docs website doesn't use our frontend sdk
a
AngusParsonson
03/19/2024, 4:12 PM
right, was wondering if there is a way around this?