@wopr-network/platform-core 1.53.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/auth/better-auth.js
CHANGED
|
@@ -144,6 +144,11 @@ function authOptions(cfg) {
|
|
|
144
144
|
baseURL,
|
|
145
145
|
basePath,
|
|
146
146
|
socialProviders: resolveSocialProviders(cfg),
|
|
147
|
+
user: {
|
|
148
|
+
additionalFields: {
|
|
149
|
+
role: { type: "string", defaultValue: "user", input: false },
|
|
150
|
+
},
|
|
151
|
+
},
|
|
147
152
|
account: {
|
|
148
153
|
accountLinking: {
|
|
149
154
|
enabled: true,
|
package/package.json
CHANGED
package/src/auth/better-auth.ts
CHANGED
|
@@ -212,6 +212,11 @@ function authOptions(cfg: BetterAuthConfig): BetterAuthOptions {
|
|
|
212
212
|
baseURL,
|
|
213
213
|
basePath,
|
|
214
214
|
socialProviders: resolveSocialProviders(cfg),
|
|
215
|
+
user: {
|
|
216
|
+
additionalFields: {
|
|
217
|
+
role: { type: "string", defaultValue: "user", input: false },
|
|
218
|
+
},
|
|
219
|
+
},
|
|
215
220
|
account: {
|
|
216
221
|
accountLinking: {
|
|
217
222
|
enabled: true,
|