Skip to content

Commit 78487ed

Browse files
committed
Update endpoint in Js
1 parent a9e708b commit 78487ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/tfa.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const axios = require('axios');
33
class TFA {
44
constructor(access_token) {
55
this.access_token = access_token;
6-
this.baseUrl = "http://localhost:8000";
7-
this.baseUrl = "https://tele-fa-api.herokuapp.com";
6+
this.baseUrl = "http://localhost:9000/api/auth";
7+
this.baseUrl = "https://tfasoft-api.herokuapp.com/api/auth";
88
}
99

1010
authUser(user_token) {
@@ -13,7 +13,7 @@ class TFA {
1313
"user_token": user_token,
1414
}
1515

16-
return axios.post(`${this.baseUrl}/api/auth/access`, data)
16+
return axios.post(`${this.baseUrl}/auth/access`, data)
1717
.then((response) => {
1818
const data = {
1919
status: response.status,

0 commit comments

Comments
 (0)