You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 9, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,11 @@ const passageFlex = new PassageFlex('YOUR_APP_ID');
77
77
78
78
To register a new user passkey, use the `passageFlex.passkey.register` method.
79
79
80
+
This is a three step process:
81
+
1. Your app should POST a user identifier (like an email) to your backend, which should request a transaction id from the Passage server to return to your app.
82
+
2. Your app should then call `passageFlex.passkey.register(transactionId)` to prompt your user to create a passkey. On success, the `register` method will return a nonce.
83
+
3. Lastly, your app should send this nonce to your backend to verify the user has been registered successfully. At this point, your backend could return an access token.
// 3. You can send this nonce to your backend to complete user registration.
94
+
const accessToken =awaitgetAccessToken(nonce);
89
95
};
90
96
```
91
97
92
98
### passageFlex.passkey.authenticate
93
99
94
100
To log in a user using a passkey, use the `passageFlex.passkey.authenticate` method.
95
101
102
+
This is a three step process:
103
+
1. Your app should POST a user identifier (like an email) to your backend, which should request a transaction id from the Passage server to return to your app.
104
+
2. Your app should then call `passageFlex.passkey.authenticate(transactionId)` to prompt your user to log in with a passkey. On success, the `authenticate` method will return a nonce.
105
+
3. Lastly, your app should send this nonce to your backend to verify the user has been authenticated successfully. At this point, your backend could return an access token.
0 commit comments