@criipto/verify-react 0.21.3 → 1.1.0
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/README.md +14 -1
- package/dist/criipto-verify-react.cjs.js +1 -1
- package/dist/criipto-verify-react.cjs.js.map +1 -1
- package/dist/criipto-verify-react.esm.js +1 -1
- package/dist/criipto-verify-react.esm.js.map +1 -1
- package/dist/device.d.ts +2 -0
- package/example/README.md +9 -0
- package/example/package-lock.json +29062 -0
- package/example/package.json +39 -0
- package/example/public/index.html +16 -0
- package/example/src/App.css +90 -0
- package/example/src/App.js +39 -0
- package/example/src/Dashboard.js +33 -0
- package/example/src/Footer.js +8 -0
- package/example/src/Header.js +17 -0
- package/example/src/Loading.js +12 -0
- package/example/src/Login.js +13 -0
- package/example/src/index.css +14 -0
- package/example/src/index.js +19 -0
- package/package.json +5 -3
package/dist/device.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import UAParser from 'ua-parser-js';
|
|
1
2
|
export declare function isiOS(): boolean;
|
|
2
3
|
export declare function isiOSSafari(): boolean;
|
|
3
4
|
export declare function isAndroid(): boolean;
|
|
4
5
|
export declare type MobileOS = 'ios' | 'android';
|
|
5
6
|
export declare function getMobileOS(): MobileOS | null;
|
|
7
|
+
export declare function getUserAgent(): UAParser.IResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Example app with @criipto-verify-react
|
|
2
|
+
|
|
3
|
+
`CriiptoVerifyProvider` is implemented in [src/index.js](src/index.js) and the primary app logic is in [src/App.js](src/App.js).
|
|
4
|
+
You can run this sample app directly with example credentials, or use your own `domain`and `clientID` if you configure your application on the [Criipto Dashboard](https://dashboard.criipto.com/).
|
|
5
|
+
|
|
6
|
+
```jsx
|
|
7
|
+
domain = 'samples.criipto.id';
|
|
8
|
+
clientID = 'urn:criipto:samples:criipto-verify-react';
|
|
9
|
+
```
|