@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.
@@ -1828,11 +1828,11 @@ class TotpHandler {
1828
1828
  recipient: this.state.recipient,
1829
1829
  authContext: this.state.authContext,
1830
1830
  });
1831
- if (response.verified && response.token) {
1831
+ if (response.verified && (response.token || response.redirect)) {
1832
1832
  return {
1833
1833
  success: true,
1834
1834
  result: {
1835
- token: response.token,
1835
+ token: response.token ?? '',
1836
1836
  identity: response.identity ?? this.state.recipient,
1837
1837
  identityType: response.identity_type ?? this.state.identityType,
1838
1838
  svid: response.svid,