Skip to content

Commit 9a6c24c

Browse files
committed
Fix auth regression from #4072
1 parent 5b8f60b commit 9a6c24c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/IIIFAuthentication.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export function IIIFAuthentication({
1717
}) {
1818
const { t } = useTranslation();
1919

20-
if (!accessTokenServiceId || !authServiceId) return null;
21-
2220
/** */
2321
const onReceiveAccessTokenMessage = (payload) => {
2422
resolveAccessTokenRequest(authServiceId, accessTokenServiceId, payload);
@@ -98,6 +96,7 @@ export function IIIFAuthentication({
9896
);
9997
};
10098

99+
if (!authServiceId) return null;
101100
if (status === null) return renderLogin();
102101
if (status === 'cookie') return renderLoggingInCookie();
103102
if (status === 'token') return renderLoggingInToken();

0 commit comments

Comments
 (0)