VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
85 stars 3 forks source link

Log user out instead of throwing an exception #277

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 3 years ago

Log user out instead of throwing an exception

https://github.com/VolantisDev/Launchpad/blob/54b12653258c2d940f635b3b7529f2da587ac791/Lib/Shared/AppLib/Authentication/AuthProvider/JwtAuthProvider.ahk#L44


                userInfo := this.ExtractAuthInfoFromResponse(request)
            } else {
                this.refreshToken := ""

                if (isRetry) {
                    ; TODO: Log user out instead of throwing an exception
                    throw OperationFailedException("Login failed.")
                } else {
                    return this.Login(true)
                }
            }
        }

53edab6425c93ced69a0a6d252402ea8b487d530