Skip to content

Commit

Permalink
fix adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jul 19, 2024
1 parent 82c7aa8 commit e1dcef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,12 @@ async function yolo_auth(req: Request): Response {
"security_bypass": true,
"affiliation": "owner"
}
let roomName = path.slice(1);
let roomName = path;
const jwt = await generateJWT(userInfo, roomName);

if (DEBUG) console.log(`tokenize token: ${jwt}`);

const redirectUrl = path + '?oidc=authenticated&jwt=' + JSON.stringify(jwt);
const redirectUrl = '/' + path + '?oidc=authenticated&jwt=' + jwt;

// Create a Response object with a 302 redirect status
return new Response(null, {
Expand Down

0 comments on commit e1dcef0

Please sign in to comment.