Skip to content

Commit

Permalink
chore: Update GOOGLE_REDIRECT_URI in settings.py to use different URL…
Browse files Browse the repository at this point in the history
…s based on DEBUG mode
  • Loading branch information
devangspsingh committed Aug 11, 2024
1 parent d715e71 commit b285378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gyanaangan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,5 @@ class PrivateMediaStorage(S3Boto3Storage):
GOOGLE_CLIENT_ID = os.getenv("GOOGLE_OAUTH_CLIENT_ID")
GOOGLE_CLIENT_SECRET = os.getenv("GOOGLE_OAUTH_CLIENT_SECRET")
GOOGLE_REDIRECT_URI = (
"http://localhost:8000/accounts/oauth/callback/" # Update with your redirect URI
"http://localhost:8000/accounts/oauth/callback/" if DEBUG else "https://gyanaangan.dspsc.live/accounts/oauth/callback/"
)

0 comments on commit b285378

Please sign in to comment.