Using supertokens-python + flask. I'm using @veri...
# support-questions-legacy
a
Using supertokens-python + flask. I'm using @verify_session(session_required=False). When the token expires I get a 401. Is this desired behavoir?
r
Hey!
Hey
Yea. That’s the desired behaviour. When the access token has expired, it means you need to refresh the session (the session still exists)
This is opposed to when there is no session at all (no idRefresToken). In which cause it will allow the api call anyway since session required is false
a
Okay sounds good, just checking! Thanks for the clarification
I have my authentication working end to end now. I'm probably using super tokens in a pretty interesting way. If there is anything I can share in terms of my setup, including walking through code, I'd be happy to.
r
Well, if your into writing blog posts, you could write one about your integration and publish that online!
a
Im in stealth mode for my startup right now. But actually authentication is a critical part of my proposition. I'll definitely prioritize this come launch!!
r
Sounds good! If you want us to help with the blog, let us know 🙂
a
I definitely will at least want you to look over it and make any suggestions!
r
cool!
6 Views