@stokr/components-library 3.0.44 → 3.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/Auth.js +2 -1
- package/package.json +1 -1
package/dist/context/Auth.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Cookies from "js-cookie";
|
|
2
2
|
import axios from "axios";
|
|
3
3
|
import axiosInstance from "../model/axios.js";
|
|
4
|
+
import axiosInstance$1 from "../model/axiosPublic.js";
|
|
4
5
|
import getCookieDomain from "../utils/get-cookie-domain.js";
|
|
5
6
|
import { getLastFirebaseConfig } from "../config.js";
|
|
6
7
|
import { initFirebase, getFirebaseAuth } from "../firebase-config.js";
|
|
@@ -136,7 +137,7 @@ class Auth {
|
|
|
136
137
|
}
|
|
137
138
|
static reportFailedLoginAttempt(email) {
|
|
138
139
|
return new Promise((resolve, reject) => {
|
|
139
|
-
axiosInstance.post(`auth/failed-login-attempt`, { email }).then((response) => {
|
|
140
|
+
axiosInstance$1.post(`auth/failed-login-attempt`, { email }).then((response) => {
|
|
140
141
|
resolve(response.data);
|
|
141
142
|
}).catch((err) => {
|
|
142
143
|
reject(err);
|