You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want an easy way to check if user is a verified gov employee, to gate access to certain pages or turn on/reveal certain tools.
🕵️ Details
User is a verified gov employee if user.isGovEmployee == true and user.work_email_verified_at !== null
🎨 Design
📸 Screenshot
🙋♀️ Proposed Implementation
This would involve more fields to the UserAuthInfo type to do elegantly.
Can create an accessor in the User Laravel model, which computes isVerifiedGovEmployee based on user.isGovEmployee == true and user.work_email_verified_at !== null. Include this as a new field in UserAuthInfo. Query this and and store it in client-side auth context.
Important
NOTE: Any mutation which can cause isGovEmployee or work_email_verified_at to change, should tell URQL that this field is possibly stale.
This will probably force the whole app to re-render 😬
Can this be enforced in URQL middleware?
🌎 Localization
✅ Acceptance Criteria
Criteria 1
Criteria 2
🛑 Blockers
The content you are editing has changed. Please copy your edits and refresh the page.
✨ Feature
We want an easy way to check if user is a verified gov employee, to gate access to certain pages or turn on/reveal certain tools.
🕵️ Details
User is a verified gov employee if user.isGovEmployee == true and user.work_email_verified_at !== null
🎨 Design
📸 Screenshot
🙋♀️ Proposed Implementation
This would involve more fields to the UserAuthInfo type to do elegantly.
Can create an accessor in the User Laravel model, which computes isVerifiedGovEmployee based on
user.isGovEmployee == true and user.work_email_verified_at !== null
. Include this as a new field in UserAuthInfo. Query this and and store it in client-side auth context.Important
NOTE: Any mutation which can cause isGovEmployee or work_email_verified_at to change, should tell URQL that this field is possibly stale.
This will probably force the whole app to re-render 😬
Can this be enforced in URQL middleware?
🌎 Localization
✅ Acceptance Criteria
🛑 Blockers
Blocked By
The text was updated successfully, but these errors were encountered: