René's URL Explorer Experiment


Title: fix: handle `getUser` error by AbhineetJain · Pull Request #3285 · coder/coder · GitHub

Open Graph Title: fix: handle `getUser` error by AbhineetJain · Pull Request #3285 · coder/coder

X Title: fix: handle `getUser` error by AbhineetJain · Pull Request #3285 · coder/coder

Description: Building on #3241, this PR handles the getUser error from authXService. Special criteria: The error is only shown when redirecting to the /login page from a page other than /. It is also not shown when loading the /login page directly. Subtasks show getUser error above the Sign-in form restrict showing the error only when redirecting (except redirecting from /) added stories update relevant backend API middleware errors to have the a You are signed out. or An internal error occurred message and move the details in the error details section. Fixes #3088 Screenshot

Open Graph Description: Building on #3241, this PR handles the getUser error from authXService. Special criteria: The error is only shown when redirecting to the /login page from a page other than /. It is also not shown ...

X Description: Building on #3241, this PR handles the getUser error from authXService. Special criteria: The error is only shown when redirecting to the /login page from a page other than /. It is also not shown ...

Opengraph URL: https://github.com/coder/coder/pull/3285

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:56728be0-6836-0dda-8e68-dbec5b21ef07
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D3A:DA744:2408088:308202A:6B01A7EE
html-safe-nonce9fca65460fc53d7af822122586ec719100988422972d51ceadf9449f882c490b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDNBOkRBNzQ0OjI0MDgwODg6MzA4MjAyQTo2QjAxQTdFRSIsInZpc2l0b3JfaWQiOiIzNTQ0NTgxODMxOTU1NDI1MjYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd92473b2029f87b505300442a9314ef359b44ed2875927f8a7e38adaa35b5083
hovercard-subject-tagpull_request:1011495687
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/3285/files
twitter:imagehttps://avatars.githubusercontent.com/u/7511231?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7511231?s=400&v=4
og:image:altBuilding on #3241, this PR handles the getUser error from authXService. Special criteria: The error is only shown when redirecting to the /login page from a page other than /. It is also not shown ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/3285/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3285%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3285%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/3285/files
Reloadhttps://github.com/coder/coder/pull/3285/files
Reloadhttps://github.com/coder/coder/pull/3285/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
AbhineetJainhttps://github.com/AbhineetJain
mainhttps://github.com/coder/coder/tree/main
abhineetjain/handle-get-user-errorhttps://github.com/coder/coder/tree/abhineetjain/handle-get-user-error
Conversation 13 https://github.com/coder/coder/pull/3285
Commits 6 https://github.com/coder/coder/pull/3285/commits
Checks 0 https://github.com/coder/coder/pull/3285/checks
Files changed https://github.com/coder/coder/pull/3285/files
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
fix: handle getUser error https://github.com/coder/coder/pull/3285/files#top
Show all changes 6 commits https://github.com/coder/coder/pull/3285/files
fbd0c6d fix: handle getUser error AbhineetJain Jul 29, 2022 https://github.com/coder/coder/pull/3285/commits/fbd0c6d10652e6533084fbda48b30a0f4dd4f1a5
8dcd958 change language to use sign-out AbhineetJain Jul 29, 2022 https://github.com/coder/coder/pull/3285/commits/8dcd9586208bc84356bf6564b20dc2c9e4954713
52c23fb update sign out message AbhineetJain Jul 29, 2022 https://github.com/coder/coder/pull/3285/commits/52c23fb55a327bc424ec580c04dce383a3506e0b
ade96de update internal error message AbhineetJain Jul 29, 2022 https://github.com/coder/coder/pull/3285/commits/ade96de46c204deec024473dac1f44708702a1b6
da9c675 Merge branch 'main' into abhineetjain/handle-get-user-error AbhineetJain Jul 29, 2022 https://github.com/coder/coder/pull/3285/commits/da9c6759af4a0b576fbfc3c093299e60faa4396e
4bcf5e7 simplify conditional AbhineetJain Jul 29, 2022 https://github.com/coder/coder/pull/3285/commits/4bcf5e722249d1072379bf99ba3dfecb667e6950
Clear filters https://github.com/coder/coder/pull/3285/files
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
apikey.go https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
RequireAuth.tsx https://github.com/coder/coder/pull/3285/files#diff-26122c4fb266db2fbbe556a886b3d9c679ca3d07073957f27a3d81e3724cd6fe
SignInForm.stories.tsx https://github.com/coder/coder/pull/3285/files#diff-dc3ea09b75d450717263a7d3469267d6385267317525ec28087f7308e2e7ed5c
SignInForm.tsx https://github.com/coder/coder/pull/3285/files#diff-2581fc5a75919683bb7cb53c67372a7be22e60d9d57f80d523daadb7dda3b475
LoginPage.tsx https://github.com/coder/coder/pull/3285/files#diff-be2f52ca6309a5b06781700a9eaed19bab0ee295fff02523ad9346d7352bfe42
coderd/httpmw/apikey.gohttps://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
View file https://github.com/coder/coder/blob/4bcf5e722249d1072379bf99ba3dfecb667e6950/coderd/httpmw/apikey.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/3285/{{ revealButtonHref }}
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
https://github.com/coder/coder/pull/3285/files#diff-309476c9621e252572e816ecc90fca9285c5712839587ef85c4656636b83aa43
site/src/components/RequireAuth/RequireAuth.tsxhttps://github.com/coder/coder/pull/3285/files#diff-26122c4fb266db2fbbe556a886b3d9c679ca3d07073957f27a3d81e3724cd6fe
View file https://github.com/coder/coder/blob/4bcf5e722249d1072379bf99ba3dfecb667e6950/site/src/components/RequireAuth/RequireAuth.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/3285/{{ revealButtonHref }}
https://github.com/coder/coder/pull/3285/files#diff-26122c4fb266db2fbbe556a886b3d9c679ca3d07073957f27a3d81e3724cd6fe
presleyphttps://github.com/presleyp
Jul 29, 2022https://github.com/coder/coder/pull/3285/files#r933442711
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
presleyphttps://github.com/presleyp
Jul 29, 2022https://github.com/coder/coder/pull/3285/files#r933445519
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
AbhineetJainhttps://github.com/AbhineetJain
Jul 29, 2022https://github.com/coder/coder/pull/3285/files#r933453694
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
https://github.com/coder/coder/pull/3285/files#diff-26122c4fb266db2fbbe556a886b3d9c679ca3d07073957f27a3d81e3724cd6fe
site/src/components/SignInForm/SignInForm.stories.tsxhttps://github.com/coder/coder/pull/3285/files#diff-dc3ea09b75d450717263a7d3469267d6385267317525ec28087f7308e2e7ed5c
View file https://github.com/coder/coder/blob/4bcf5e722249d1072379bf99ba3dfecb667e6950/site/src/components/SignInForm/SignInForm.stories.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/3285/{{ revealButtonHref }}
https://github.com/coder/coder/pull/3285/files#diff-dc3ea09b75d450717263a7d3469267d6385267317525ec28087f7308e2e7ed5c
https://github.com/coder/coder/pull/3285/files#diff-dc3ea09b75d450717263a7d3469267d6385267317525ec28087f7308e2e7ed5c
https://github.com/coder/coder/pull/3285/files#diff-dc3ea09b75d450717263a7d3469267d6385267317525ec28087f7308e2e7ed5c
site/src/components/SignInForm/SignInForm.tsxhttps://github.com/coder/coder/pull/3285/files#diff-2581fc5a75919683bb7cb53c67372a7be22e60d9d57f80d523daadb7dda3b475
View file https://github.com/coder/coder/blob/4bcf5e722249d1072379bf99ba3dfecb667e6950/site/src/components/SignInForm/SignInForm.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/3285/{{ revealButtonHref }}
https://github.com/coder/coder/pull/3285/files#diff-2581fc5a75919683bb7cb53c67372a7be22e60d9d57f80d523daadb7dda3b475
https://github.com/coder/coder/pull/3285/files#diff-2581fc5a75919683bb7cb53c67372a7be22e60d9d57f80d523daadb7dda3b475
https://github.com/coder/coder/pull/3285/files#diff-2581fc5a75919683bb7cb53c67372a7be22e60d9d57f80d523daadb7dda3b475
site/src/pages/LoginPage/LoginPage.tsxhttps://github.com/coder/coder/pull/3285/files#diff-be2f52ca6309a5b06781700a9eaed19bab0ee295fff02523ad9346d7352bfe42
View file https://github.com/coder/coder/blob/4bcf5e722249d1072379bf99ba3dfecb667e6950/site/src/pages/LoginPage/LoginPage.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/3285/{{ revealButtonHref }}
https://github.com/coder/coder/pull/3285/files#diff-be2f52ca6309a5b06781700a9eaed19bab0ee295fff02523ad9346d7352bfe42
https://github.com/coder/coder/pull/3285/files#diff-be2f52ca6309a5b06781700a9eaed19bab0ee295fff02523ad9346d7352bfe42
Kira-Pilothttps://github.com/Kira-Pilot
Jul 29, 2022https://github.com/coder/coder/pull/3285/files#r933412639
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
AbhineetJainhttps://github.com/AbhineetJain
Jul 29, 2022https://github.com/coder/coder/pull/3285/files#r933421586
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3285/files
https://github.com/coder/coder/pull/3285/files#diff-be2f52ca6309a5b06781700a9eaed19bab0ee295fff02523ad9346d7352bfe42
https://github.com/coder/coder/pull/3285/files#diff-be2f52ca6309a5b06781700a9eaed19bab0ee295fff02523ad9346d7352bfe42
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.