@sparkvault/sdk-js 1.27.5 → 1.27.7
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/sparkvault.esm.js
CHANGED
|
@@ -1824,11 +1824,11 @@ class TotpHandler {
|
|
|
1824
1824
|
recipient: this.state.recipient,
|
|
1825
1825
|
authContext: this.state.authContext,
|
|
1826
1826
|
});
|
|
1827
|
-
if (response.verified && response.token) {
|
|
1827
|
+
if (response.verified && (response.token || response.redirect)) {
|
|
1828
1828
|
return {
|
|
1829
1829
|
success: true,
|
|
1830
1830
|
result: {
|
|
1831
|
-
token: response.token,
|
|
1831
|
+
token: response.token ?? '',
|
|
1832
1832
|
identity: response.identity ?? this.state.recipient,
|
|
1833
1833
|
identityType: response.identity_type ?? this.state.identityType,
|
|
1834
1834
|
svid: response.svid,
|