Commit 036a4a7
fix: pass user attributes during loginUserWithUserAttributes on Android (#391)
* fix: pass user attributes during loginUserWithUserAttributes on Android
The Android native module was silently dropping all attributes except
email and userId when calling loginUserWithUserAttributes. This chains
Registration.withUserAttributes() using the existing buildUserAttributes
helper, matching the iOS behavior. Also updates the TypeScript type to
accept full UserAttributes instead of only email/userId.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: simplify loginUserWithUserAttributes type to UserAttributes
Address PR review feedback: the union type enforcing email|userId at
compile time is unnecessary since the native layer validates at runtime.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8486057 commit 036a4a7
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
| |||
0 commit comments