You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am willing to work on this issue. Could you tell what the potential cause for this issue is and any recommended way to fix it?
github apps have a callback url the user is authorized to redirect the user back to the application. You can add custom redirect_uri's as query parameters at the end of the authorization request. The trick is, is that the redirect_uri has to use the callback url as the base url but you can extend it with another query parameter to redirect from http://decomp.me/login to wherever the user was perviously. Simply get the current url from wherever the user was when they selected the github login button and attach that as a an extended redirect_uri. Then when that gets passed to the login page parse the query_param and redirect the user back to where they were.
Here's what the current request url is (src/lib/oauth.ts):
To Reproduce
Expected behavior
You're on the same scratch page you were at, but logged in.
**Actual behavior
You get redirected to the front page.
Conversely, logging out behaves as expected; you stay at the page you're at.
The text was updated successfully, but these errors were encountered: