weibeu / Flask-Discord

Discord OAuth2 extension for Flask. An Easier implementation of "Log In With Discord".
https://flask-discord.readthedocs.io/en/latest/
MIT License
182 stars 47 forks source link

[Question] Manage sessions opened #63

Closed rafaelsupport closed 2 years ago

rafaelsupport commented 2 years ago

Is it possible to get the currently active sessions? My intention is to manage who is currently logged in and force a specific user, for example, to logoff whenever I want

weibeu commented 2 years ago

Currently, no such way to do that. What you can do is use flask-sessions to manage user's session server side along with Flask-Discord by overriding methods like save authorization token and get authorization token of Flask-Discord.

rafaelsupport commented 2 years ago

Currently, no such way to do that. What you can do is use flask-sessions to manage user's session server side along with Flask-Discord by overriding methods like save authorization token and get authorization token of Flask-Discord.

hmm thanks for reply i dont know how to do this, but i'll search about

thanks again