Skip to content

Make usesPkce a derived property on RestSourceClient#333

Open
this-Aditya wants to merge 3 commits into
devfrom
derive-pkce
Open

Make usesPkce a derived property on RestSourceClient#333
this-Aditya wants to merge 3 commits into
devfrom
derive-pkce

Conversation

@this-Aditya

Copy link
Copy Markdown
Member

Derive usesPkce in rest source client and remove it from constructor param so it can never be added to the configs.

Base automatically changed from google-health-api to dev June 4, 2026 07:53
val scope: String? = null,
val state: String? = null,
val usesPkce: Boolean = false,
val oauthVersion: String = "oauth2",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it only supports 2 values, would it be better as an enum class then ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good point.
 Would it be nice, if we just keep this as boolean instead, something like isOauth2 to keep it simple?

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.

2 participants