You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Today, i was trying to add Okta Sign-Widget integrate with our Single-spa mfe, but when i import logo and pass the value to logo with Okta config it doesn't show logo.
Local path or URL to a logo image that is displayed at the top of the Sign-In Widget
import logoImage from './path-to-logo.png';
I believe the issue is this line, you're loading the image into memory via the ES Module Loader. So when you pass logoImage to the Widget config, you're passing the image as a string, rather than a local filepath or url.
thanks for reply, @jaredperreault-okta .
This is working perfectly with react app (none single-spa). not sure, i believe it's check the imported image object and makes reference ?
Describe the bug
Hi, Today, i was trying to add Okta Sign-Widget integrate with our Single-spa mfe, but when i import logo and pass the value to logo with Okta config it doesn't show logo.
Reproduction Steps
create single-spa app.
//add Okta sign widget
import logoImage from './path-to-logo.png';
const oktaConfig = {
clientId: 'your-client-id',
redirectUri: window.location.origin + '/login/callback',
logo: logoImage
};
// Login.js
import React, { useEffect } from 'react';
import oktaConfig from './okta-config';
const Login = () => {
useEffect(() => {
const widget = new OktaSignIn(oktaConfig);
}, []);
return (
);
};
export default Login;
SDK Versions
okta/react 6.7.x
okta/okta-auth-js 6.7.x
Additional Information
No response
The text was updated successfully, but these errors were encountered: