Skip to content

Implement changes from auth-methods rfd#58

Merged
nerzhulart merged 2 commits intomasterfrom
anna.zhdan/auth-methods
Jan 20, 2026
Merged

Implement changes from auth-methods rfd#58
nerzhulart merged 2 commits intomasterfrom
anna.zhdan/auth-methods

Conversation

@anna239
Copy link
Copy Markdown
Contributor

@anna239 anna239 commented Jan 20, 2026

No description provided.

@anna239 anna239 requested a review from nerzhulart January 20, 2026 11:00
jsonObject
)
else -> AuthMethod.UnknownAuthMethod(
id = ACPJson.decodeFromJsonElement(AuthMethodId.serializer(), jsonObject["id"]!!),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

better to throw user friendly exception instead of using !! operator to have good diagnostics.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

)
else -> AuthMethod.UnknownAuthMethod(
id = ACPJson.decodeFromJsonElement(AuthMethodId.serializer(), jsonObject["id"]!!),
name = jsonObject["name"]!!.jsonPrimitive.content,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the same

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@anna239 anna239 requested a review from nerzhulart January 20, 2026 12:11
@nerzhulart nerzhulart merged commit b352336 into master Jan 20, 2026
1 check passed
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