@bytexbyte/berifyme-react-sdk 1.0.2 → 1.0.3
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.
|
@@ -173,6 +173,14 @@ var HomeModal = function (_a) {
|
|
|
173
173
|
else if (apiKeyId && secretKey && redirectUrl) {
|
|
174
174
|
createToken({ apiKeyId: apiKeyId, secretKey: secretKey, redirectUrl: redirectUrl });
|
|
175
175
|
}
|
|
176
|
+
else {
|
|
177
|
+
setError('Token is required to access this page. Please include a valid token in the URL.');
|
|
178
|
+
}
|
|
179
|
+
//[Web] if (res.token) {
|
|
180
|
+
// checkToken(res.token);
|
|
181
|
+
// } else {
|
|
182
|
+
// setError('Token is required to access this page. Please include a valid token in the URL.');
|
|
183
|
+
// }
|
|
176
184
|
//處理desktop
|
|
177
185
|
if (res.desktopRedirectUrlId)
|
|
178
186
|
setDesktopRedirectUrlId(res.desktopRedirectUrlId);
|