Skip to content

Conversation

@purquijo
Copy link
Contributor

@purquijo purquijo commented Jun 6, 2024

Credits to Lulian.

@purquijo purquijo requested a review from LukaszPater June 21, 2024 14:24

const handleTokens = (key, freshTokens) => {
tokens[key] = freshTokens;
console.log(tokens)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log

setTimeout(() => exchangeToken({ sourceClient, targetClient }), (response.data.expires_in - 20) * 1000);
return response.data;
} catch (_) {
console.log(_)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log. Also, need better error handling.

src/index.js Outdated
Comment on lines 32 to 37
const getClientID = ({url}) => {
if (url?.startsWith(process.env.REACT_APP_EAM_SERVICES_URL)) {
return process.env.REACT_APP_KEYCLOAK_EAM_SERVICES_CLIENTID;
} else return process.env.REACT_APP_KEYCLOAK_CLIENTID;
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a better, more generic way to get the client id instead of a binary check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants