diff --git a/coderd/userauth.go b/coderd/userauth.go index c540f4cc213a5..1345e25de8699 100644 --- a/coderd/userauth.go +++ b/coderd/userauth.go @@ -364,7 +364,7 @@ func (api *API) oauthLogin(r *http.Request, params oauthLoginParams) (*http.Cook Username: params.Username, OrganizationID: organizationID, }, - LoginType: database.LoginTypeOIDC, + LoginType: params.LoginType, }) if err != nil { return xerrors.Errorf("create user: %w", err)