Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed Jan 3, 2025
1 parent b46ca20 commit c293ada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/keycloak/boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ app.get(
family_name?: string;
preferred_username: string;
};
console.log(userinfo, accessToken);

const roles = resource_access?.['unchained-local']?.roles || [];
const username = preferred_username || `keycloak:${sub}`;
const user = await engine.unchainedAPI.modules.users.findUserByUsername(username);

// eslint-disable-next-line
// @ts-ignore
request.session.keycloak = accessToken;

if (user) {
Expand Down

0 comments on commit c293ada

Please sign in to comment.