[GH-ISSUE #735] Conditional rendering of OAuth providers #215

Closed
opened 2026-02-26 18:45:56 +03:00 by kerem · 2 comments
Owner

Originally created by @anuragts on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/735

Originally assigned to: @anuragts on GitHub.

Issue Description

In the local setup, when attempting to log in with Google at the "/signin" route, an error is encountered due to the absence of default values for 'GOOGLE_CLIENT_ID' and 'GOOGLE_CLIENT_SECRET'.

Steps to Reproduce

Setup documenso locally

  • go to /signin route
  • attempt to use login with google

Expected Behavior

Should conditionally render the auth providers if the client secrets are present in .env file.

Current Behavior

Rendering Google auth provider without checking in .env

Screenshots (optional)

Screenshot from 2023-12-06 03-13-09

Operating System [e.g., Windows 10]

PopOS (Linux)

Browser [e.g., Chrome, Firefox]

Chrome

Version [e.g., 2.0.1]

v1.0.0

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved
Originally created by @anuragts on GitHub (Dec 6, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/735 Originally assigned to: @anuragts on GitHub. ### Issue Description In the local setup, when attempting to log in with Google at the "/signin" route, an error is encountered due to the absence of default values for 'GOOGLE_CLIENT_ID' and 'GOOGLE_CLIENT_SECRET'. ### Steps to Reproduce Setup documenso locally - go to /signin route - attempt to use login with google ### Expected Behavior Should conditionally render the auth providers if the client secrets are present in .env file. ### Current Behavior Rendering Google auth provider without checking in .env ### Screenshots (optional) ![Screenshot from 2023-12-06 03-13-09](https://github.com/documenso/documenso/assets/79055093/61ee0633-a126-4b1d-bfce-8c630bf2d24c) ### Operating System [e.g., Windows 10] PopOS (Linux) ### Browser [e.g., Chrome, Firefox] Chrome ### Version [e.g., 2.0.1] v1.0.0 ### Please check the boxes that apply to this issue report. - [X] I have searched the existing issues to make sure this is not a duplicate. - [X] I have provided steps to reproduce the issue. - [X] I have included relevant environment information. - [X] I have included any relevant screenshots. - [X] I understand that this is a voluntary contribution and that there is no guarantee of resolution. - [X] I want to work on creating a PR for this issue if approved
kerem 2026-02-26 18:45:56 +03:00
Author
Owner

@anuragts commented on GitHub (Dec 6, 2023):

will work on this issue

<!-- gh-comment-id:1842697095 --> @anuragts commented on GitHub (Dec 6, 2023): will work on this issue
Author
Owner

@Mythie commented on GitHub (Dec 6, 2023):

Assigned 😄

<!-- gh-comment-id:1842704520 --> @Mythie commented on GitHub (Dec 6, 2023): Assigned 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#215
No description provided.