Commit 3b3f188
Add Better Auth official schema and dual authentication system
- Created Better Auth official schema (user, session, account, verification tables)
- Updated dual-auth middleware to query Better Auth tables
- Added automatic user sync between Better Auth and legacy users table
- Steam inventory endpoints now work with Better Auth sessions
- Backend supports both JWT tokens and Better Auth session tokens
How it works:
1. Frontend authenticates with Better Auth (Steam OAuth)
2. Better Auth creates session in "session" table
3. Backend middleware verifies session token
4. User data synced to legacy "users" table for portfolio access
5. All portfolio features work seamlessly
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 63927ed commit 3b3f188
644 files changed
Lines changed: 62827 additions & 354 deletions
File tree
- lib
- migrations
- node_modules
- .bin
- @passport-next
- passport-openid
- lib/passport-openid
- errors
- passport-strategy
- lib
- asynckit
- lib
- axios
- dist
- browser
- esm
- node
- lib
- adapters
- cancel
- core
- defaults
- env
- classes
- helpers
- platform
- browser
- classes
- common
- node
- classes
- buffer-equal-constant-time
- call-bind-apply-helpers
- .github
- test
- combined-stream
- lib
- delayed-stream
- lib
- dotenv
- lib
- dunder-proto
- .github
- test
- ecdsa-sig-formatter
- src
- es-define-property
- .github
- test
- es-object-atoms
- .github
- test
- es-set-tostringtag
- test
- express-session
- node_modules
- cookie-signature
- cookie
- session
- follow-redirects
- form-data
- lib
- get-intrinsic
- test
- get-proto
- .github
- test
- gopd
- test
- has-proto
- test
- has-symbols
- test
- shams
- has-tostringtag
- .github
- test
- shams
- hasown
- jsonwebtoken
- lib
- node_modules
- .bin
- ms
- semver
- bin
- classes
- functions
- internal
- ranges
- jwa
- jws
- lib
- lodash.includes
- lodash.isboolean
- lodash.isinteger
- lodash.isnumber
- lodash.isplainobject
- lodash.isstring
- lodash.once
- math-intrinsics
- .github
- constants
- test
- on-headers
- openid
- lib
- test
- passport-steam
- lib/passport-steam
- passport-strategy
- lib
- passport
- etc
- lib
- errors
- framework
- http
- middleware
- strategies
- sponsors
- pause
- proxy-from-env
- random-bytes
- steam-web
- lib
- test
- uid-safe
- uuid
- dist-node
- bin
- dist
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
0 commit comments