tfa-node-sdk
Advanced tools
Comparing version
@@ -6,4 +6,4 @@ const axios = require('axios'); | ||
this.access_token = access_token; | ||
this.baseUrl = "http://localhost:8000"; | ||
this.baseUrl = "https://tele-fa-api.herokuapp.com"; | ||
this.baseUrl = "http://localhost:9000/api/auth"; | ||
this.baseUrl = "https://tfasoft-api.herokuapp.com/api/auth"; | ||
} | ||
@@ -17,3 +17,3 @@ | ||
return axios.post(`${this.baseUrl}/api/auth/access`, data) | ||
return axios.post(`${this.baseUrl}/auth/access`, data) | ||
.then((response) => { | ||
@@ -20,0 +20,0 @@ const data = { |
@@ -6,6 +6,8 @@ import axios from 'axios'; | ||
baseUrl: string; | ||
testUrl: string; | ||
constructor(access_token) { | ||
this.access_token = access_token; | ||
this.baseUrl = "https://tele-fa-api.herokuapp.com"; | ||
this.baseUrl = "http://localhost:9000/api/auth"; | ||
this.baseUrl = "https://tfasoft-api.herokuapp.com/api/auth"; | ||
} | ||
@@ -19,3 +21,3 @@ | ||
return axios.post(`${this.baseUrl}/api/auth/access`, data) | ||
return axios.post(`${this.baseUrl}/auth/access`, data) | ||
.then((response) => { | ||
@@ -22,0 +24,0 @@ const data = { |
{ | ||
"name": "tfa-node-sdk", | ||
"version": "1.5.2", | ||
"version": "1.6.2", | ||
"description": "Telegram Factor Authentication node library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7580
1.3%73
2.82%