Skip to content

Commit acd89ff

Browse files
committed
Update endpoint in Ts
1 parent 78487ed commit acd89ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ts_tfa.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import axios from 'axios';
33
class TFA {
44
access_token: string;
55
baseUrl: string;
6+
testUrl: string;
67

78
constructor(access_token) {
89
this.access_token = access_token;
9-
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";
1012
}
1113

1214
authUser(user_token: string) {
@@ -15,7 +17,7 @@ class TFA {
1517
"user_token": user_token,
1618
}
1719

18-
return axios.post(`${this.baseUrl}/api/auth/access`, data)
20+
return axios.post(`${this.baseUrl}/auth/access`, data)
1921
.then((response) => {
2022
const data = {
2123
status: response.status,

0 commit comments

Comments
 (0)