dragonfruitnetwork / dragon6-api

Rainbow Six Siege Stats API for .NET
Apache License 2.0
12 stars 6 forks source link

convert Dragon6Client's `GetToken()` to return `Task` instead of `ValueTask` #320

Closed aspriddell closed 2 years ago

aspriddell commented 2 years ago

In almost all scenarios, the user will need to run an async operation when pulling a token, redis, firebase, EF and files are all async-compatible so makes sense to use that.

aspriddell commented 2 years ago

another helpful addition would be to add the last sessionId as a parameter for easy checking - if the session ids match then the session has not been refreshed.