fix(fullstack): Use platform linux/amd64 for image building, some env var fixes
This commit is contained in:
@@ -11,19 +11,16 @@ export default eventHandler(async (event) => {
|
||||
}
|
||||
|
||||
try {
|
||||
const { access_token, refresh_token } = await $fetch<OAuthTokenResponse>(
|
||||
`http://localhost:7080/realms/legalconsenthub/protocol/openid-connect/token`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: { 'content-type': 'application/x-www-form-urlencoded' },
|
||||
body: new URLSearchParams({
|
||||
grant_type: 'refresh_token',
|
||||
client_id: config.oauth.keycloak.clientId,
|
||||
client_secret: config.oauth.keycloak.clientSecret,
|
||||
refresh_token: session.jwt.refreshToken
|
||||
}).toString()
|
||||
}
|
||||
)
|
||||
const { access_token, refresh_token } = await $fetch<OAuthTokenResponse>(config.public.keycloakTokenUrl, {
|
||||
method: 'POST',
|
||||
headers: { 'content-type': 'application/x-www-form-urlencoded' },
|
||||
body: new URLSearchParams({
|
||||
grant_type: 'refresh_token',
|
||||
client_id: config.oauth.keycloak.clientId,
|
||||
client_secret: config.oauth.keycloak.clientSecret,
|
||||
refresh_token: session.jwt.refreshToken
|
||||
}).toString()
|
||||
})
|
||||
|
||||
await setUserSession(event, {
|
||||
jwt: {
|
||||
|
||||
Reference in New Issue
Block a user