fix(oauth): handle no user scenario (#3556)
This commit is contained in:
1 parent
09a302250c
commit
81ab52784a
1 file changed
+6
@@ -111,6 +111,12 @@ function OpenIdConnectRoutes({
|
||||
const getAuthorizationHeader = () => {
|
||||
const user = userAuthenticationService.getUser();
|
||||
|
||||
// if the user is null return early, next time
|
||||
// we hit this function we will have a user
|
||||
if (!user) {
|
||||
return;
|
||||
}
|
||||
|
||||
return {
|
||||
Authorization: `Bearer ${user.access_token}`,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user