We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b8f60b commit 9a6c24cCopy full SHA for 9a6c24c
src/components/IIIFAuthentication.jsx
@@ -17,8 +17,6 @@ export function IIIFAuthentication({
17
}) {
18
const { t } = useTranslation();
19
20
- if (!accessTokenServiceId || !authServiceId) return null;
21
-
22
/** */
23
const onReceiveAccessTokenMessage = (payload) => {
24
resolveAccessTokenRequest(authServiceId, accessTokenServiceId, payload);
@@ -98,6 +96,7 @@ export function IIIFAuthentication({
98
96
);
99
97
};
100
+ if (!authServiceId) return null;
101
if (status === null) return renderLogin();
102
if (status === 'cookie') return renderLoggingInCookie();
103
if (status === 'token') return renderLoggingInToken();
0 commit comments