We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e708b commit 78487edCopy full SHA for 78487ed
lib/tfa.js
@@ -3,8 +3,8 @@ const axios = require('axios');
3
class TFA {
4
constructor(access_token) {
5
this.access_token = access_token;
6
- this.baseUrl = "http://localhost:8000";
7
- this.baseUrl = "https://tele-fa-api.herokuapp.com";
+ this.baseUrl = "http://localhost:9000/api/auth";
+ this.baseUrl = "https://tfasoft-api.herokuapp.com/api/auth";
8
}
9
10
authUser(user_token) {
@@ -13,7 +13,7 @@ class TFA {
13
"user_token": user_token,
14
15
16
- return axios.post(`${this.baseUrl}/api/auth/access`, data)
+ return axios.post(`${this.baseUrl}/auth/access`, data)
17
.then((response) => {
18
const data = {
19
status: response.status,
0 commit comments