🐛 fix(bot-services): use correct double-prefix path for matrix-session API

mana-core-auth has a double prefix (/api/v1/api/v1/auth) due to
global prefix + controller prefix. Update SessionService to use
the correct paths.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-13 13:51:16 +01:00
parent c54ff859d6
commit 7e1e8e9378

View file

@ -137,8 +137,9 @@ export class SessionService {
}
try {
// Note: mana-core-auth has double prefix due to global prefix + controller prefix
const response = await fetch(
`${this.authUrl}/api/v1/auth/matrix-session/${encodeURIComponent(matrixUserId)}`,
`${this.authUrl}/api/v1/api/v1/auth/matrix-session/${encodeURIComponent(matrixUserId)}`,
{
headers: {
'X-Service-Key': this.serviceKey,
@ -247,7 +248,8 @@ export class SessionService {
email: string
): Promise<void> {
try {
const response = await fetch(`${this.authUrl}/api/v1/auth/matrix-user-links`, {
// Note: mana-core-auth has double prefix due to global prefix + controller prefix
const response = await fetch(`${this.authUrl}/api/v1/api/v1/auth/matrix-user-links`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',