refactor: rename keycloakId to authentikId in codebase
Some checks failed
Some checks failed
This commit is contained in:
parent
7eebd12699
commit
8317349507
12 changed files with 270 additions and 48 deletions
|
@ -5,10 +5,10 @@ import { OAuthStorage } from 'angular-oauth2-oidc';
|
|||
export const httpInterceptor: HttpInterceptorFn = (req, next) => {
|
||||
const oauthStorage = inject(OAuthStorage);
|
||||
|
||||
if (oauthStorage.getItem('jwt')) {
|
||||
if (oauthStorage.getItem('access_token')) {
|
||||
return next(req.clone({
|
||||
setHeaders: {
|
||||
'Authorization': 'Bearer ' + oauthStorage.getItem('jwt'),
|
||||
'Authorization': 'Bearer ' + oauthStorage.getItem('access_token'),
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
}
|
||||
|
|
Reference in a new issue