You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(providers): make connection optional on WorkOS (#11270)
WorkOS: connection is not required field
```
// v4: works fine
WorkOSProvider({
clientId: process.env.WORKOS_CLIENT_ID,
clientSecret: process.env.WORKOS_API_KEY,
allowDangerousEmailAccountLinking: true
connection: 'workos'
}),
// v5: errors because 'workos' is not recognized
WorkOSProvider({
clientId: process.env.WORKOS_CLIENT_ID,
clientSecret: process.env.WORKOS_API_KEY,
allowDangerousEmailAccountLinking: true
connection: 'workos'
} ),
// v5: type mismatched, but works fine
WorkOSProvider({
clientId: process.env.WORKOS_CLIENT_ID,
clientSecret: process.env.WORKOS_API_KEY,
allowDangerousEmailAccountLinking: true
} as any),
```
0 commit comments