{"_id":"@ciright/ngx-fido","_rev":"1-c26f651f07bb7baa3f7a9e68a67be3d4","name":"@ciright/ngx-fido","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.3":{"name":"@ciright/ngx-fido","version":"0.1.3","author":{"name":"Sunny Gohil"},"peerDependencies":{"@angular/common":"^11.0.9","@angular/core":"^11.0.9"},"dependencies":{"tslib":"^2.0.0"},"main":"bundles/ciright-ngx-fido.umd.js","module":"fesm2015/ciright-ngx-fido.js","es2015":"fesm2015/ciright-ngx-fido.js","esm2015":"esm2015/ciright-ngx-fido.js","fesm2015":"fesm2015/ciright-ngx-fido.js","typings":"ciright-ngx-fido.d.ts","metadata":"ciright-ngx-fido.metadata.json","sideEffects":false,"description":"<img src=\"https://ciright.com/wp-content/uploads/2020/07/ciright-blue-logo.png\" alt=\"Ciright Logo\" width=\"200\" style=\"float: right\"/>","_id":"@ciright/ngx-fido@0.1.3","_nodeVersion":"15.6.0","_npmVersion":"7.4.0","dist":{"integrity":"sha512-5J2GODdSmfi5t720RZnqjIZxmp8T/XE3bcnW/eZ5YIFqFt37j7EHxYlud8/WEiVpOj5emNyQn9Kfi+oeHtcOAw==","shasum":"446d5ed01cf2dd0bf4fc39d86b63db758bf926ac","tarball":"https://registry.npmjs.org/@ciright/ngx-fido/-/ngx-fido-0.1.3.tgz","fileCount":25,"unpackedSize":194859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEMeMCRA9TVsSAnZWagAAY5IP/10jtdqHHmLTIFmaAJkN\nnRbNKa3tc/DGMqUej8VrIH5cBM+JeZrQsKgR5Tb3XGGTBM+M0PasbnG/n8XJ\npM5ZGdkK+/XgA0qCKwUqIsxg8lZCD6/EF2mmWBEHf4buu9l+QVA7eBpkCMSP\nHbH6Y7h1qWq5kkmEChD8Md0AIBOSsUDb/c5SN44YESrn870VJsPT1NnjoW0s\nYUKGkhSbS86sGsKSrjBX+QPNFjuzFrlnDQqppoMEk0QT+gB4Cckye1BTQs70\nfmEcBT0ZB+yAe0bmWuinfm/JzWP03ItpMJb1ByGWkN8iwAzbnJmyOxNlOfPL\nWN+BGpnASdozZnqw7N/xAgzhP9ulpfGHPQ3QZKMkgZ9JZ3tEzSbWvGKzJsVU\n72NflXbSxgVxg1JWStcV2X8WUSfo21ckX0KE7CVv/Nda5qmjgwM4B9gvQ64E\nG8NCE8CcVa/iZUf9gBIAG9adG071aekSb1xBm44YIYsbP2jNqdjR7kIk6Wt5\nMKTYJIstq7ZaMkwYJ/xra6zDbokempX2k8Kg5dndkeBsVdT88insVfTSXNhC\nyAZD1GG4PVop4UbGmPMCGs60oWMMWGo/q82U3/duZY8IEydZiyxTBg0h90JL\nUst656JiWEwunHHXeNk7L2HC1AFV98n9vJ5xD9LYHJIZwZUa37OUHrNTlbE/\nFK8a\r\n=ravq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyjz9lxoqtsJX4l+MlQONcWFdBmqeGfw4P8LgoSH/yPAiEAjvstkZ75HLQXoEfstJwYnTw1Eu/LdDRRKZed425R40Q="}]},"_npmUser":{"name":"sunny1245","email":"comp_sunny68@hotmail.com"},"directories":{},"maintainers":[{"name":"sunny1245","email":"comp_sunny68@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-fido_0.1.3_1611712396517_0.09952289153304017"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-27T01:53:16.276Z","0.1.3":"2021-01-27T01:53:16.667Z","modified":"2022-04-04T23:02:14.662Z"},"maintainers":[{"name":"sunny1245","email":"comp_sunny68@hotmail.com"}],"description":"<img src=\"https://ciright.com/wp-content/uploads/2020/07/ciright-blue-logo.png\" alt=\"Ciright Logo\" width=\"200\" style=\"float: right\"/>","author":{"name":"Sunny Gohil"},"readme":"# ngx-fido\n\n<img src=\"https://ciright.com/wp-content/uploads/2020/07/ciright-blue-logo.png\" alt=\"Ciright Logo\" width=\"200\" style=\"float: right\"/>\n\n## Description\n\nThis is a ciright fido card connection library working with Angular 10+.\n\n## Installation\n\nInstall the library into your project via [npm](https://www.npmjs.com/package/@ciright/ngx-fido)\n\n```\nnpm i --save @ciright/ngx-fido\n```\n\n## Usage\n\n- Import **NgxFidoModule** and provide **global config variables**\n```javascript\n// app.module.ts\nimport { NgxFidoModule } from '@ciright/ngx-fido';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n    imports: [\n        BrowserModule,\n        NgxFidoModule.forRoot({\n            url: 'YOUR_CIRIGHT_ENDPOINT--THIS_IS_OPTIONAL',\n            token: 'YOUR_AUTH_TOKEN'\n        })\n    ],\n    declarations: [AppComponent],\n    bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\n- Register New User\n  - Import the **NgxFidoService** in your component.\n```javascript\n// app.component.ts\nimport { NgxFidoService } from '@ciright/ngx-fido';\n\n@Component({...})\nexport class YourComponent {\n    constructor(private fidoService: NgxFidoService) {}\n\n    registerUser() {\n        this.fidoService.registerUser(this.username, (err, result) => {\n            if (err) {\n                console.log(err);\n            } else {\n                console.log(result);\n            }\n        });\n    }\n}\n```\n\n- Authenticate User\n  - Import the **NgxFidoService** in your component.\n```javascript\n// app.component.ts\nimport { NgxFidoService } from '@ciright/ngx-fido';\n\n@Component({...})\nexport class YourComponent {\n    constructor(private fidoService: NgxFidoService) {}\n\n    authenticateUser() {\n        this.fidoService.authenticateUser(this.username, (err, result) => {\n            if (err) {\n                console.log(err);\n            } else {\n                console.log(result);\n            }\n        });\n    }\n}\n```","readmeFilename":"README.md"}