Change trust authentification endpoints
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export function PublicTrustCenterLayout({ organizationName, organizationLogo, ch
|
||||
|
||||
const handleLogout = async () => {
|
||||
try {
|
||||
await fetch(buildEndpoint('/api/trust/v1/trust-center-access/logout'), {
|
||||
await fetch(buildEndpoint('/api/trust/v1/auth/logout'), {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -87,7 +87,7 @@ export default function TrustCenterAccessPage() {
|
||||
return;
|
||||
}
|
||||
|
||||
fetch(buildEndpoint('/api/trust/v1/trust-center-access/authenticate'), {
|
||||
fetch(buildEndpoint('/api/trust/v1/auth/authenticate'), {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user