Paste it as the example says.
Then you should have a TS2367: This comparison appears to be unintentional because the types 'boolean' and 'string' have no overlap. error on return !request.headers.get('token-update') === 'false'; line
The log given by the failure.
TS2367: This comparison appears to be unintentional because the types 'boolean' and 'string' have no overlap.
Bug Report or Feature Request (mark with an
x
)Versions.
keycloak-angular: 14.0.0 angular: 16.0.0 keycloak: 21.1.1 typescript: 5.0.2
Repro steps.
Go to this section: (https://www.npmjs.com/package/keycloak-angular#httpclient-interceptor) Copy the shouldUpdateToken attribute:
Paste it as the example says. Then you should have a
TS2367: This comparison appears to be unintentional because the types 'boolean' and 'string' have no overlap.
error onreturn !request.headers.get('token-update') === 'false';
lineThe log given by the failure.
TS2367: This comparison appears to be unintentional because the types 'boolean' and 'string' have no overlap.
Desired functionality.
I would like to see a code without TS error.