mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 17:10:06 +00:00
fix SSO stage complete error
This commit is contained in:
parent
684c9285a6
commit
3d460bd9f2
|
@ -14,14 +14,12 @@ export function SSOStage({
|
|||
const { errorCode, error, session } = stageData;
|
||||
const [ssoWindow, setSSOWindow] = useState<Window>();
|
||||
|
||||
const handleSubmit = useCallback(
|
||||
() =>
|
||||
submitAuthDict({
|
||||
type: AuthType.Sso,
|
||||
session,
|
||||
}),
|
||||
[submitAuthDict, session]
|
||||
);
|
||||
const handleSubmit = useCallback(() => {
|
||||
submitAuthDict({
|
||||
type: AuthType.Sso,
|
||||
session,
|
||||
});
|
||||
}, [submitAuthDict, session]);
|
||||
|
||||
const handleContinue = () => {
|
||||
const w = window.open(ssoRedirectURL, '_blank');
|
||||
|
|
Loading…
Reference in a new issue