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