Skip to content
Discussion options

You must be logged in to vote

I must have only added the Validate variant. I can add the Finish variant. Here's the Validate variant:

https://github.com/go-webauthn/webauthn/blob/master/webauthn/login.go#L243

Here's what a function like this would look like (and you can use this today locally with minor tweaking):

// FinishPasskeyLogintakes the response from the client and validate it against the handler and stored session data.
// The handler helps to find out which user must be used to validate the response. This is a function defined in your
// business code that will retrieve the user from your persistent data.
func (webauthn *WebAuthn) FinishPasskeyLogin(handler DiscoverableUserHandler, session SessionData, response

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nickiv
Comment options

@james-d-elliott
Comment options

Answer selected by nickiv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants