-
Notifications
You must be signed in to change notification settings - Fork 8
Add authenticationMethod to state #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Greptile SummaryThis PR exposes the
The implementation is clean, consistent, and follows the existing patterns for other session fields like Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant App
participant Hook
participant Provider
participant JS
App->>Provider: Init
Provider->>JS: createClient
JS-->>Provider: client
JS->>Provider: onRefresh
Provider->>JS: getClaims
JS-->>Provider: claims
Provider->>Provider: update state
App->>Hook: useAuth
Hook-->>App: authenticationMethod
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, no comments
| } from "@workos-inc/authkit-js"; | ||
| export type { | ||
| User, | ||
| AuthenticationMethod, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Doing that now - thanks for the review!!
nholden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
This PR exposes the authenticationMethod field from the AuthKit JS SDK, allowing consumers to know how a user authenticated.
Changes