lookupUserWithPasskey
Asynchronously handles the authentication process using WebAuthn Stamper. If a user is provided, sets the user and returns it. Otherwise, retrieves the current user and initializes the WebAuthn stamper.
Import
Usage
Parameters
user
User
An optional user object to authenticate
Returns
Promise<User>
A promise that resolves to the authenticated user object