feat: redirect to profile page on login - #131
Open
robsimmons wants to merge 2 commits into
Open
robsimmons wants to merge 2 commits into
robsimmons wants to merge 2 commits into
Conversation
robsimmons
force-pushed
the
profile-redirect
branch
from
September 8, 2026 21:02
fec2889 to
1223555
Compare
robsimmons
force-pushed
the
oauth-refresh
branch
from
September 8, 2026 21:02
e2a46a2 to
875b9d2
Compare
Vtec234
reviewed
Sep 8, 2026
|
|
||
| export default async function UserProfileForward() { | ||
| const auth = await requireAuth() | ||
| if (auth.user.name === 'profile') throw new Error('Unsupported username') |
Member
There was a problem hiding this comment.
Should this rather be prevented during sign-up, in the better-auth hook for validating a new user profile? On that note we should also forbid other route names like 'setup'.
Collaborator
Author
There was a problem hiding this comment.
And "admin", and if we allow names from anywhere besides github we're going to need a name-collision-avoiding mechanism. Filed #132
robsimmons
force-pushed
the
oauth-refresh
branch
from
September 9, 2026 15:41
875b9d2 to
5a3bb4d
Compare
robsimmons
force-pushed
the
profile-redirect
branch
from
September 9, 2026 15:41
40b7a6e to
5572f0d
Compare
robsimmons
force-pushed
the
oauth-refresh
branch
from
September 9, 2026 17:57
5a3bb4d to
764a022
Compare
robsimmons
force-pushed
the
profile-redirect
branch
2 times, most recently
from
September 9, 2026 17:59
0a43671 to
5a0aa5f
Compare
robsimmons
force-pushed
the
oauth-refresh
branch
2 times, most recently
from
September 9, 2026 18:01
69e0756 to
c24b4fd
Compare
robsimmons
force-pushed
the
profile-redirect
branch
from
September 9, 2026 18:01
5a0aa5f to
4307609
Compare
robsimmons
force-pushed
the
oauth-refresh
branch
from
September 9, 2026 18:24
c24b4fd to
c83b30b
Compare
robsimmons
force-pushed
the
profile-redirect
branch
from
September 9, 2026 18:26
4307609 to
c0b7ac8
Compare
robsimmons
force-pushed
the
profile-redirect
branch
from
September 9, 2026 19:08
c0b7ac8 to
43b35ef
Compare
Collaborator
Author
robsimmons
force-pushed
the
profile-redirect
branch
from
September 11, 2026 18:39
43b35ef to
c590a84
Compare
robsimmons
force-pushed
the
profile-redirect
branch
from
September 15, 2026 15:51
c590a84 to
2e27197
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creates a
/profileURL that redirects to the signed-in users' profile, and redirects most logins there so that people initially go to their login page instead of the sparse root URL.