René's URL Explorer Experiment


Title: feat: Add Sign-out functionality by bryphe-coder · Pull Request #46 · coder/coder · GitHub

Open Graph Title: feat: Add Sign-out functionality by bryphe-coder · Pull Request #46 · coder/coder

X Title: feat: Add Sign-out functionality by bryphe-coder · Pull Request #46 · coder/coder

Description: #37 implemented the Sign-in flow, but there wasn't a Sign-out flow as part of that PR (aside from letting the cookie expire... or manually deleting the cookie...), which is obviously not ideal. This PR implements a basic sign-out flow, along with a very simple user dropdown: Bringing in a few pruned down components for the to integrate into the . In addition, this also implements a simple back-end API for /logout which just clears the session token. TODO: Merge up once #50 is merged

Open Graph Description: #37 implemented the Sign-in flow, but there wasn't a Sign-out flow as part of that PR (aside from letting the cookie expire... or manually deleting the cookie...), which is obviously not ideal....

X Description: #37 implemented the Sign-in flow, but there wasn't a Sign-out flow as part of that PR (aside from letting the cookie expire... or manually deleting the cookie...), which is obviously not id...

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

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:32def960-3212-a3c5-d2a9-90097716b824
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5C8:33444D:20A49C9:2B625CA:6B018126
html-safe-nonce4ff9a9a6236ab4bb839487da6f3f2686e544e3e16e567926fe02968c5a6cd68d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUM4OjMzNDQ0RDoyMEE0OUM5OjJCNjI1Q0E6NkIwMTgxMjYiLCJ2aXNpdG9yX2lkIjoiNDQ4Mzg0ODI2NDI3NzM5MzcwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1e19f1b047a583875ff23d0caf58fbb338624c070552efa8a07eed74ee9426f4
hovercard-subject-tagpull_request:829160795
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/46/files
twitter:imagehttps://avatars.githubusercontent.com/u/88213859?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/88213859?s=400&v=4
og:image:alt#37 implemented the Sign-in flow, but there wasn't a Sign-out flow as part of that PR (aside from letting the cookie expire... or manually deleting the cookie...), which is obviously not ideal....
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/46/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F46%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%2F46%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/46/files
Reloadhttps://github.com/coder/coder/pull/46/files
Reloadhttps://github.com/coder/coder/pull/46/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
bryphe-coderhttps://github.com/bryphe-coder
mainhttps://github.com/coder/coder/tree/main
bryphe/feat/user-profile-cardhttps://github.com/coder/coder/tree/bryphe/feat/user-profile-card
Conversation 9 https://github.com/coder/coder/pull/46
Commits 16 https://github.com/coder/coder/pull/46/commits
Checks 0 https://github.com/coder/coder/pull/46/checks
Files changed https://github.com/coder/coder/pull/46/files
Please reload this pagehttps://github.com/coder/coder/pull/46/files
feat: Add Sign-out functionality https://github.com/coder/coder/pull/46/files#top
Show all changes 16 commits https://github.com/coder/coder/pull/46/files
c6035aa Initial nav menu + user dropdown bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/c6035aaa311d6125f862ddef9b8dabb227110dd4
16a7e57 Initial logout route bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/16a7e575d4001f574f9471d61710ee1afd9c8319
cb6ad18 API handler for logout bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/cb6ad184d7bdd8fa4227e38941eada3978c7ef9e
b5eec09 Fix lint issues bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/b5eec09669059ac0122743020572ad1352676c98
5c11f7c Fix lint / formatting bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/5c11f7cc1a22b377255c72dd88d95521b0a6ed78
f1c3ed0 Expand Navbar test to render user icon bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/f1c3ed05ae1f8ce73ae6376bbc6356629d6b3110
a05f476 Cleanup bryphe-coder Jan 22, 2022 https://github.com/coder/coder/pull/46/commits/a05f476030f12824f7a957d47f0911e6806228cd
1188ff0 Merge master bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/1188ff0dc389d7f7ca4723bf09c41d1b5a4b6b41
af001cb Remove receiver name completely bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/af001cba22d818a4ba28be03a5393a6340df4324
52d0136 Add Logout test bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/52d0136b89a061c12938fcc88ba7815ab60638e6
401a73c Merge branch 'main' into bryphe/feat/user-profile-card bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/401a73cb2a222d030f31c1ec307f065ea9596af7
8a828b6 Fix lint warnings in user context bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/8a828b66f138a4b811a08d2b36b8bff0da2d6166
4d8f131 Add router as dependency bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/4d8f1310bcd4fcb81c9eaaedc6d54be05e577b99
4dcd1fd Stub out client tests bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/4dcd1fd0a441611e47aad3735c299eb7f8cf8494
aa84624 Remove ClearSessionToken + test bryphe-coder Jan 24, 2022 https://github.com/coder/coder/pull/46/commits/aa84624ed871463434314ed3dc6cc277ea216c03
00df3d9 Fix dependency causing infinite loop in tests bryphe-coder Jan 25, 2022 https://github.com/coder/coder/pull/46/commits/00df3d962b8e9c55714fb69a24484535aeaad51d
Clear filters https://github.com/coder/coder/pull/46/files
Please reload this pagehttps://github.com/coder/coder/pull/46/files
Please reload this pagehttps://github.com/coder/coder/pull/46/files
coderd.go https://github.com/coder/coder/pull/46/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
users.go https://github.com/coder/coder/pull/46/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
users_test.go https://github.com/coder/coder/pull/46/files#diff-a3640fd39a07c39f0d43ef2fbcba3836a7613e979df14583a78508acd5731dee
users.go https://github.com/coder/coder/pull/46/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
users_test.go https://github.com/coder/coder/pull/46/files#diff-d260ba58ee589a2116f5bfae9a41642a3291f2de611b15f7211994d687f8cbc9
api.ts https://github.com/coder/coder/pull/46/files#diff-decf2a916afd2dfdad9ec4926c4c22545a64b63f08169b13961090e407687c1f
Logout.tsx https://github.com/coder/coder/pull/46/files#diff-8850f720c0ab4512743c9b3b74877b768430bc40c93717f9258fcaa9ce55e2ec
index.ts https://github.com/coder/coder/pull/46/files#diff-dad606b3083b815559eeacf6ebbecd267b7b84a9961ec7ad285c4bee91721aa9
BorderedMenu.tsx https://github.com/coder/coder/pull/46/files#diff-ebde2fe681a5296dd3fb47cb6220d91abd9cad0fcb1b43636167466d04f26097
UserDropdown.tsx https://github.com/coder/coder/pull/46/files#diff-c17b877ca832db9fe21035d7f6b9348a018b6e6dc4efaaa69f9ead4bd17f7768
index.test.tsx https://github.com/coder/coder/pull/46/files#diff-f979619ccefecbd60fc2ad1c855ba967b1f0fe9a8575e9a7f71c9ba861e9db4a
index.tsx https://github.com/coder/coder/pull/46/files#diff-0b8eecc7e051654cc6c8b429cc476c3cf741cc28479aa47c33447ff55f035dcc
UserAvatar.tsx https://github.com/coder/coder/pull/46/files#diff-ff68fd2577216f26a56863d295dd4debd398de571bb4bf028eb044bfdcfa9400
UserProfileCard.tsx https://github.com/coder/coder/pull/46/files#diff-715b0f97793b5d1abba1331c958ecff2af1a84bcae46b1b01ca584976e4f254c
index.ts https://github.com/coder/coder/pull/46/files#diff-064cc954a726bb64495aa58b07b205438f2986e7e28b5cc11c3609a0d8ab63d2
UserContext.test.tsx https://github.com/coder/coder/pull/46/files#diff-222acbcafd44675e75944f2505da295a732fd0c14d96ca0e98473156c0e002de
UserContext.tsx https://github.com/coder/coder/pull/46/files#diff-34932539f99928fc852f6a604bc265fda6e783e696acfa37a19790d763c9fce8
index.tsx https://github.com/coder/coder/pull/46/files#diff-726661c1675f4eb9dc7e74dfe2f46d727102047c3f09d4748d0fd5adf6feae7c
index.tsx https://github.com/coder/coder/pull/46/files#diff-aa2d166d1774354e04bc57539b4c230ae4f2025fdad32cb634170bd9612ed8a1
user.ts https://github.com/coder/coder/pull/46/files#diff-8527f0c22ecf5e9af45c52741676f7d6a8d1ce05e923af8e361e23c2af472121
coderd/coderd.gohttps://github.com/coder/coder/pull/46/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/coderd/coderd.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/46/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
coderd/users.gohttps://github.com/coder/coder/pull/46/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/coderd/users.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
https://github.com/coder/coder/pull/46/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
coderd/users_test.gohttps://github.com/coder/coder/pull/46/files#diff-a3640fd39a07c39f0d43ef2fbcba3836a7613e979df14583a78508acd5731dee
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/coderd/users_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-a3640fd39a07c39f0d43ef2fbcba3836a7613e979df14583a78508acd5731dee
https://github.com/coder/coder/pull/46/files#diff-a3640fd39a07c39f0d43ef2fbcba3836a7613e979df14583a78508acd5731dee
https://github.com/coder/coder/pull/46/files#diff-a3640fd39a07c39f0d43ef2fbcba3836a7613e979df14583a78508acd5731dee
codersdk/users.gohttps://github.com/coder/coder/pull/46/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/codersdk/users.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
https://github.com/coder/coder/pull/46/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
codersdk/users_test.gohttps://github.com/coder/coder/pull/46/files#diff-d260ba58ee589a2116f5bfae9a41642a3291f2de611b15f7211994d687f8cbc9
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/codersdk/users_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-d260ba58ee589a2116f5bfae9a41642a3291f2de611b15f7211994d687f8cbc9
site/api.tshttps://github.com/coder/coder/pull/46/files#diff-decf2a916afd2dfdad9ec4926c4c22545a64b63f08169b13961090e407687c1f
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/api.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-decf2a916afd2dfdad9ec4926c4c22545a64b63f08169b13961090e407687c1f
site/components/Icons/Logout.tsxhttps://github.com/coder/coder/pull/46/files#diff-8850f720c0ab4512743c9b3b74877b768430bc40c93717f9258fcaa9ce55e2ec
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/components/Icons/Logout.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
site/components/Icons/index.tshttps://github.com/coder/coder/pull/46/files#diff-dad606b3083b815559eeacf6ebbecd267b7b84a9961ec7ad285c4bee91721aa9
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/components/Icons/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
site/components/Navbar/BorderedMenu.tsxhttps://github.com/coder/coder/pull/46/files#diff-ebde2fe681a5296dd3fb47cb6220d91abd9cad0fcb1b43636167466d04f26097
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/components/Navbar/BorderedMenu.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
site/components/Navbar/UserDropdown.tsxhttps://github.com/coder/coder/pull/46/files#diff-c17b877ca832db9fe21035d7f6b9348a018b6e6dc4efaaa69f9ead4bd17f7768
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/components/Navbar/UserDropdown.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
site/components/Navbar/index.test.tsxhttps://github.com/coder/coder/pull/46/files#diff-f979619ccefecbd60fc2ad1c855ba967b1f0fe9a8575e9a7f71c9ba861e9db4a
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/components/Navbar/index.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
site/components/Navbar/index.tsxhttps://github.com/coder/coder/pull/46/files#diff-0b8eecc7e051654cc6c8b429cc476c3cf741cc28479aa47c33447ff55f035dcc
View file https://github.com/coder/coder/blob/00df3d962b8e9c55714fb69a24484535aeaad51d/site/components/Navbar/index.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/46/{{ revealButtonHref }}
https://github.com/coder/coder/pull/46/files#diff-0b8eecc7e051654cc6c8b429cc476c3cf741cc28479aa47c33447ff55f035dcc
https://github.com/coder/coder/pull/46/files#diff-0b8eecc7e051654cc6c8b429cc476c3cf741cc28479aa47c33447ff55f035dcc
Please reload this pagehttps://github.com/coder/coder/pull/46/files
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.