@tempoxyz/auth 0.0.0-pr-74.sha-cefcb96 → 0.0.0-pr-74.sha-232cd9d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/email.d.ts +2 -1
- package/dist/actions/email.js +2 -2
- package/package.json +1 -1
package/dist/actions/email.d.ts
CHANGED
|
@@ -53,7 +53,8 @@ export declare namespace signIn {
|
|
|
53
53
|
/**
|
|
54
54
|
* The `link` from `Actions.passkey.signIn`'s email step, which links that wallet.tempo passkey
|
|
55
55
|
* to the user. When the step is `signed`, the call returns the key that passkey sign-in
|
|
56
|
-
* authorized with its assertion, given the same `accessKey`
|
|
56
|
+
* authorized with its assertion, given the same `accessKey`, `challenge`, and `permissions`.
|
|
57
|
+
* Another `accessKey` replaces the key that sign-in generated.
|
|
57
58
|
*/
|
|
58
59
|
link?: string | undefined;
|
|
59
60
|
/** What the key may do. It must fit the headless ceiling, which fills what it leaves out. */
|
package/dist/actions/email.js
CHANGED
|
@@ -26,8 +26,8 @@ export async function sendCode(auth, options) {
|
|
|
26
26
|
export async function signIn(auth, options) {
|
|
27
27
|
const { challenge, code, email, link, permissions } = options;
|
|
28
28
|
// A one-tap passkey sign-in's email step already signed the key it generated, which Tempo Auth
|
|
29
|
-
// returns once this request names it again.
|
|
30
|
-
const kept = link ? await Link.get(auth, { link }) : undefined;
|
|
29
|
+
// returns once this request names it again. A key the app supplies replaces it.
|
|
30
|
+
const kept = link && !options.accessKey ? await Link.get(auth, { link }) : undefined;
|
|
31
31
|
const key = kept ?? (await AccessKey.resolve(options.accessKey));
|
|
32
32
|
const body = await Api.json(await Api.post(auth, '/v1/auth/code/verify', {
|
|
33
33
|
json: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tempoxyz/auth",
|
|
3
|
-
"version": "0.0.0-pr-74.sha-
|
|
3
|
+
"version": "0.0.0-pr-74.sha-232cd9d",
|
|
4
4
|
"description": "Signs users in to Tempo through Tempo Auth, and returns Viem access key accounts on their Tempo Accounts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|