Need to research how to correctly retrieve the user's Github username (unique login identifier) in Better Auth, instead of their public Display Name. Potential solutions may involve before or after Hooks. Key questions:
- Difference between
username and display name in Github API response
- Whether Better Auth defaults to fetching the wrong field, requiring override/extend
- Hook best practices (timing, data modification approach)
Need to research how to correctly retrieve the user's Github username (unique login identifier) in Better Auth, instead of their public Display Name. Potential solutions may involve
beforeorafterHooks. Key questions:usernameanddisplay namein Github API response