Skip to content

Commit

Permalink
fix: providers form & example app
Browse files Browse the repository at this point in the history
  • Loading branch information
Alisher committed May 2, 2023
1 parent 8185f95 commit c5aa2fa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions examples/with-thirdparty-popup/frontend/src/App.tsx
@@ -1,5 +1,7 @@
import "./App.css";
import SuperTokens, { SuperTokensWrapper, getSuperTokensRoutesForReactRouterDom } from "supertokens-auth-react";
import SuperTokens, { SuperTokensWrapper } from "supertokens-auth-react";
import { getSuperTokensRoutesForReactRouterDom } from "supertokens-auth-react/ui";
import { ThirdPartyPreBuiltUI } from "supertokens-auth-react/recipe/thirdparty/prebuiltui";
import { SessionAuth } from "supertokens-auth-react/recipe/session";
import { Routes, BrowserRouter as Router, Route } from "react-router-dom";
import Home from "./Home";
Expand Down Expand Up @@ -41,7 +43,7 @@ function App() {
"_blank",
"width=600,height=600"
);
var timer = setInterval(function () {
const timer = setInterval(() => {
if (win && win.closed) {
clearInterval(timer);
window.location.replace("/");
Expand All @@ -63,7 +65,9 @@ function App() {
<div className="fill">
<Routes>
{/* This shows the login UI on "/auth" route */}
{getSuperTokensRoutesForReactRouterDom(require("react-router-dom"))}
{getSuperTokensRoutesForReactRouterDom(require("react-router-dom"), [
ThirdPartyPreBuiltUI,
])}

<Route
path="/"
Expand Down
2 changes: 1 addition & 1 deletion lib/build/thirdparty-shared2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5aa2fa

Please sign in to comment.