Releases: kernel/managed-auth-react
@onkernel/managed-auth-react@0.3.0
Minor Changes
- #13
fc77370Thanks @masnwilliams! - Auto-resolve SSO provider icons via the Simple Icons CDN.getSSOProviderInfonow slugifies any provider key and renders its brand icon fromhttps://cdn.simpleicons.org/<slug>, with a circular letter-avatar fallback when the icon fails to load. Removes the hardcodedGoogleMark/GitHubMark/GitLabMark/MicrosoftMark/FacebookMark/AppleMarkSVGs in favor of the generic resolver, so new providers render out of the box without library changes. Non-brand keys (passkey,sso,saml) keep their built-in icons.
Patch Changes
-
#10
74f27bcThanks @Tom-Achache! - Guard the bootstrap effect inuseManagedAuthSessionagainst React 18+ Strict Mode's mount → cleanup → mount double-invocation. Without the guard, the second mount re-firesexchangeHandoffCodewith a now-consumed handoff code and the component lands in the error state ("Failed to start session") even when auth would have worked. Tracked per(sessionId, handoffCode)so a genuine prop change still triggers a fresh exchange. -
#13
fc77370Thanks @masnwilliams! - Wrap button and option text when content overflows..kma-buttonpreviously usedwhite-space: nowrapand a fixedheight, so long MFA / SSO / sign-in option labels clipped past the card on narrower viewports. Switched tomin-heightplusoverflow-wrap: anywhereso labels wrap and the row grows to fit, and addedpadding+min-width: 0on.kma-sso-buttonso its label can shrink.
v0.1.0
What's Changed
- chore: format package.json with prettier by @masnwilliams in #1
New Contributors
- @masnwilliams made their first contribution in #1
Full Changelog: v0.1.0-alpha.3...v0.1.0