We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9051ffa commit 3dd4931Copy full SHA for 3dd4931
apps/lfx-pcc/src/server/utils/m2m-token.util.ts
@@ -29,7 +29,7 @@ export async function generateM2MToken(req: Request): Promise<string> {
29
30
// Select the appropriate request configuration
31
const config = isAuthelia ? AUTHELIA_TOKEN_REQUEST : AUTH0_TOKEN_REQUEST;
32
- const tokenEndpoint = issuerBaseUrl + config.endpoint;
+ const tokenEndpoint = new URL(config.endpoint, issuerBaseUrl).toString();
33
34
// Prepare request options based on auth provider
35
const requestOptions = {
0 commit comments