Hey, i'm using Fastify with supertokens, and i'm s...
# support-questions-legacy
d
Hey, i'm using Fastify with supertokens, and i'm setup swagger & swagger-ui for my API. Wanted to know if is there a way to add the supertokens routes to my swagger documentation ?
r
Hey @DollarNavalex there is no easy way to do this.
d
Okay, well i will just drop it from the swagger, thanks
And if i want at least to try routes on my swagger-ui, can i add a header or something manually with a session token ?
I mean, I generate my token directly from my postman or something, and then I inject it in my swagger page to try out protected routes
r
yea. You can add the tokens from postman as authorization header in the request
d
Should i add a
bearer: {key}
or just the key ?
r
Bearer key
d
Okay i found the doc about that, thanks 🙂
Hm okay and once logged in, where can i dump a bearer token ?
(i'm using cookie login on postman)
I guess i can just copy the value of the accessToken cookie ?
r
yea
13 Views