Add several endpoints
This commit is contained in:
1 parent
5beb0684a7
commit
f78e5ca94c
5 files changed
+29
-9
No files matched your search
@@ -397,9 +397,7 @@ const Register = ({ isAdmin }) => {
|
||||
const fetchInvite = async () => {
|
||||
if (token !== undefined) {
|
||||
try {
|
||||
const res = await axiosInstance.post(`/auth/invite/verify`, {
|
||||
token,
|
||||
});
|
||||
const res = await axiosInstance.verifyInvitationToken(token);
|
||||
const { role, email } = res.data.data;
|
||||
console.log(role);
|
||||
setForm({ ...form, email, role });
|
||||
|
||||
Reference in new issue
Block a user