Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(OAuth): Migrate state & code swap to backend #19

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Conversation

dvjsharma
Copy link
Owner

Description

This PR migrates the code and state swap logic to the backend and removes the frontend dependency for the same.

How to test

  • Add the FRONTEND_REDIRECT_URL value in the .env file. The server will redirect to this URL with an access token in the query param.
  • Get the authorization_url with redirect URL as {domain}/api/v1/live/google-oauth2/callback/.
  • Navigate to this URL and sign in using your google account.
  • You will be redirected to the forntend URL along with an access token for that user in the query param.

Signed by Divij Sharma

@dvjsharma dvjsharma merged commit 1fc839e into master Sep 15, 2024
2 checks passed
@dvjsharma dvjsharma deleted the feat/oauth branch September 15, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant