* Added field discoveryHeaders to GenericOAuthConfig allowing users to specify key pairs to be added in the discovery requests to OAuthProvider. Required for some OIDC configurations.
* Fix formatting from merge w/ main
---------
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
* feat: remove the artificial resource limit so that code can check
Also change `permission` to `permissions` (clearer for end user). `permission` is left for backwards compatibility.
* docs: add examples for multiple perms checking
* refactor: check `permissions` first, then legacy one
* feat: use union types for `permission` & `permissions`
* fix: properly use union types
* fix: remove accidental `@deprecated` comment
* chore: lint
* fix test
* chore: add oneTimeToken plugin to client barrel exports (#2224)
* docs(expo): add id token usage
* feat(oauth2): override user info on provider sign-in (#2148)
* feat(oauth2): override user info on provider sign-in
* improve email verification handling
* resolve mrge
* fix(sso): update overrideUserInfo handling to use provider configuration
* fix param
* chore: change plugin interface middleware type (#2195)
* fix: delete from session table when stopImpersonate called (#2230)
* chore: fix active organization inferred type
* chore: fix admin test
---------
Co-authored-by: Bereket Engida <bekacru@gmail.com>
Co-authored-by: Wade Fletcher <3798059+wadefletch@users.noreply.github.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
* feat(socialLink): add support for custom scopes in social account linking
- Updated documentation to include information on requesting specific scopes when linking social accounts.
- Added a test case to verify that custom scopes are correctly passed to the authorization URL.
- Modified the account linking endpoint to accept additional scopes as an optional parameter.
* chore: lint
* fix(account): update account linking logic and tests
---------
Co-authored-by: Bereket Engida <bekacru@gmail.com>