Tert0/fastapi-discord

How To Create A Session?

Opened this issue · 6 comments

Issue title says enough

Tert0 commented

What kind of session do you mean?

I do a request.session I add the token as session cookie. When I need to make a call, I simply add the token as header

I do a request.session I add the token as session cookie. When I need to make a call, I simply add the token as header

Basically What This Does, Like FlaskDiscord create_session method

I've never seen Flask-Discord, but this is what works for me. There are no docs and not good example for this library. I looked into the code and I saw that it uses headers for some odd reason...

I've never seen Flask-Discord, but this is what works for me. There are no docs and not good example for this library. I looked into the code and I saw that it uses headers for some odd reason...

Can you provide some example code?