Skip to content

Commit

Permalink
Merge pull request #2384 from daostack/CW-Webview-url-fix
Browse files Browse the repository at this point in the history
Cw webview url fix
  • Loading branch information
pvm-code authored Dec 6, 2023
2 parents fcce158 + a40e4ca commit 2ee7382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const WebViewLoginHandler: FC = () => {

const handleWebviewLogin = React.useCallback((event) => {
const data = parseJson(event.data) as FirebaseCredentials;

if (data?.redirectUrl) {
history.push(data?.redirectUrl);
}
if (!data?.providerId) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions src/shared/interfaces/FirebaseCredentials.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AuthProviderID } from "../constants";

export interface FirebaseCredentials {
redirectUrl: string;
providerId: AuthProviderID;
signInMethod: AuthProviderID;
idToken: string;
Expand Down

0 comments on commit 2ee7382

Please sign in to comment.