Skip to content

Commit b08c8c9

Browse files
committed
fix IsGithubDotComURL check
1 parent d8d4b9b commit b08c8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/userauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ func (api *API) userOAuth2Github(rw http.ResponseWriter, r *http.Request) {
10961096
}
10971097
// If the user is logging in with github.com we update their associated
10981098
// GitHub user ID to the new one.
1099-
if externalauth.IsGithubDotComURL(api.GithubOAuth2Config.AuthCodeURL("")) && user.GithubComUserID.Int64 != ghUser.GetID() {
1099+
if externalauth.IsGithubDotComURL(api.GithubOAuth2Config.OAuth2Config.AuthCodeURL("")) && user.GithubComUserID.Int64 != ghUser.GetID() {
11001100
err = api.Database.UpdateUserGithubComUserID(ctx, database.UpdateUserGithubComUserIDParams{
11011101
ID: user.ID,
11021102
GithubComUserID: sql.NullInt64{

0 commit comments

Comments
 (0)