fraudnetic-agent
v1.1.2
Published
Fraudnetic agent integration for front
Downloads
331
Maintainers
Readme
Fraudnetic agent usage
Installation
npm install fraudnetic-agent
Usage
Angular usage example
import { Component } from '@angular/core';
import fraudnetic from 'fraudnetic-agent';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'angular';
ngOnInit() {
fraudnetic.init().then((token) => {
console.log('Fraudnetic initialized');
console.log('Fraudnetic token: ' + token);
// use token in each axios header
});
}
}