Comments (2)
Hi @Robert-Steiner !
It seems like your issue could easily be fixed by checking the current URL in the SignIn button onClick handler and calling redirectToAuth only if it's not the sign-in page URL.
You may wanna consider removing the SignIn button from the SignIn page entirely, following the approach used by many popular apps like Github and Discord.
I am closing this issue but please reply in case you need further help.
from supertokens-auth-react.
Hi @anku255,
Thank you for your help! I followed your first idea and it works fine, but I agree that it might make sense to remove the sign-in button completely.
from supertokens-auth-react.
Related Issues (20)
- KeyError: 'access_token' in Flask Python backend (during sign in on NextJS frontend) HOT 6
- Add logo property for custom logos HOT 4
- [Discussion] OAuth 2.0 changes
- Vite run fails: ThirdPartyEmailPasswordPreBuiltUI dependency could not be resolved when importing HOT 3
- Example Issue on "with-one-login-per-subdomain" HOT 4
- getAccessToken() always returning the old access token after refreshing the session HOT 11
- Component wrapped in `SessionAuth` doesn't get the latest session context HOT 2
- NextJS demo app not working HOT 11
- Abstract away navigation from the pre built UI
- NextJS warning for styling HOT 2
- Update Needed: SuperTokens Compatibility with Next.js 14 (App Router) HOT 2
- Fail to import getSuperTokensRoutesForReactRouterDom HOT 2
- Possibility to override "thirdPartyEmailPasswordDivider" style HOT 2
- Overriding password reset component results in the logo outside the container
- SSR support for SessionAuth HOT 3
- Create Remix example for TPEP recipe HOT 2
- Example Electron App out of date HOT 2
- Doesn't work on React Router 6.4 (v6.22.3) HOT 1
- Reduce size of `/recipe/thirdparty` import by removing default logos from it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertokens-auth-react.