Change trust authentification endpoints

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-04 13:37:20 +02:00
parent 9afb80d5e8
commit 032fd14135
3 changed files with 4 additions and 4 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -107,8 +107,8 @@ func NewMux(
r.Handle("/playground", playground.Handler("GraphQL Playground", "/api/trust/v1/graphql"))
r.Post("/trust-center-access/authenticate", authTokenHandler(trustSvc, authCfg))
r.Delete("/trust-center-access/logout", trustCenterLogoutHandler(authCfg))
r.Post("/auth/authenticate", authTokenHandler(trustSvc, authCfg))
r.Delete("/auth/logout", trustCenterLogoutHandler(authCfg))
return r
}