nwunderly / starlette-discord

"Login with Discord" support for Starlette and FastAPI
https://starlette-discord.rtfd.io
MIT License
32 stars 11 forks source link

Solution proposal for issue #8. #9

Closed chrisdewa closed 3 years ago

chrisdewa commented 3 years ago

Modified DiscordOAuthClient method session to accept token parameter.

DiscordOAuthSession has the following changes:

chrisdewa commented 3 years ago

Implemented suggested improvements by @nwunderly.

Im not entirely sure the methods session and session_from_token are adequately named though

nwunderly commented 3 years ago

Im not entirely sure the methods session and session_from_token are adequately named though

Yeah, I was thinking the same thing. It's all I can think of, though.

About to push some changes here, I think this is looking pretty good now.