@tempoxyz/auth 0.0.0-pr-71.sha-52deb17 → 0.0.0-pr-71.sha-607f920
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/Decorator.js +4 -4
- package/package.json +1 -1
package/dist/Decorator.js
CHANGED
|
@@ -61,9 +61,9 @@ export function tempoAuth(options) {
|
|
|
61
61
|
* account to sign with, or `undefined` to stop signing. `check` accepts a result that changes
|
|
62
62
|
* no account, such as a step. Applying an account, or checking a step, that a newer change
|
|
63
63
|
* overtook throws {@link SupersededError}, so the caller never holds a result the client's
|
|
64
|
-
* newer state contradicts. `fail` rethrows the operation's error
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* newer state contradicts. `fail` rethrows the operation's error, or throws `SupersededError`
|
|
65
|
+
* when a newer change overtook it, so the caller never acts on a stale refusal. A sign-in
|
|
66
|
+
* refused after its code or passkey verified already set a server session, which `fail` ends.
|
|
67
67
|
*/
|
|
68
68
|
const begin = () => {
|
|
69
69
|
const started = version;
|
|
@@ -91,7 +91,7 @@ export function tempoAuth(options) {
|
|
|
91
91
|
// An arrow function, which `catch` takes unbound.
|
|
92
92
|
fail: async (error) => {
|
|
93
93
|
if (version !== started)
|
|
94
|
-
await superseded();
|
|
94
|
+
throw await superseded();
|
|
95
95
|
throw error;
|
|
96
96
|
},
|
|
97
97
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tempoxyz/auth",
|
|
3
|
-
"version": "0.0.0-pr-71.sha-
|
|
3
|
+
"version": "0.0.0-pr-71.sha-607f920",
|
|
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": {
|