fix(oauth): handle no user scenario (#3556)

This commit is contained in:
Alireza authored and GitHub committed 2023-07-20 12:08:54 -04:00
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}`,
};