Comments (1)
Disclaimer: This comment was automatically generated with AI. It can give some useful hints as to where to look for, but sometimes it can also give very inaccurate answers so takes this with a pinch of salt :).
To remove the flash on the intermediate Verify step when signing in with SSO, follow these steps:
- VerifyEffect Component: Modify the
VerifyEffect
component to handle the intermediate state without causing a flash. This component is likely located infrontend/components/VerifyEffect.js
.
// Example modification
useEffect(() => {
if (isVerifying) {
// Add logic to handle intermediate state smoothly
}
}, [isVerifying]);
- useAuth Hook: Ensure the
useAuth
hook manages the authentication state properly to avoid unnecessary re-renders. This hook can be found infrontend/hooks/useAuth.js
.
// Example modification
const useAuth = () => {
const [authState, setAuthState] = useState(initialState);
// Add logic to handle SSO verification state
};
- useNavigateAfterSignInUp: Adjust the navigation logic in
useNavigateAfterSignInUp
to handle the transition smoothly. This is located infrontend/hooks/useNavigateAfterSignInUp.js
.
// Example modification
const useNavigateAfterSignInUp = () => {
const navigate = useNavigate();
// Add logic to handle navigation without flash
};
- Backend Controllers: Ensure the backend controllers for Google and Microsoft SSO handle the verification step correctly. These controllers are likely in
backend/controllers/auth/googleController.js
andbackend/controllers/auth/microsoftController.js
.
// Example modification
const handleSSOVerification = (req, res) => {
// Add logic to handle verification step without causing frontend flash
};
By making these changes, the flash during the intermediate verify step should be removed.
References
from twenty.
Related Issues (20)
- UI Overlap and State Persistence in Filter Menus HOT 1
- Inconsistent Tab Layouts on Record Pages HOT 1
- Relations many field HOT 1
- Add a Skip Button to the Onboarding Invite Team Screen HOT 1
- Optimize Effect state sync components in Index scope HOT 1
- Clean up V2 and refactoring leftover HOT 1
- Remove custom events for table cell managemnet HOT 1
- Optimistic effect on create should be modified HOT 1
- Migrate to twenty-ui HOT 1
- Remove CSS modules HOT 1
- Create alert banner component HOT 1
- Update Link Chip Styles and Hover Effects HOT 1
- Hover Not Triggered on First Row from Top Field Bar HOT 2
- Border-Radius on Calendar HOT 2
- Remove Right-Edge Gap in Table Cell Display HOT 1
- Selected Line Not Fully Highlighted in Blue HOT 1
- Update Country Selector background color HOT 2
- Improve Relation Picker Loading Sequence HOT 1
- Duplicated rating field on frontend HOT 1
- Rating field cannot be edited if it's empty HOT 1
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 twenty.