mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Improve error handling for missing provider type in OAuth configuration
This commit is contained in:
parent
079df58c1a
commit
9fa42c703a
@ -71,7 +71,7 @@ const oauthProvidersCrud = createCrud({
|
||||
|
||||
function oauthProviderConfigToLegacyConfig(provider: Tenancy['config']['auth']['oauth']['providers'][string]) {
|
||||
return {
|
||||
id: provider.type!,
|
||||
id: provider.type || throwErr('Provider type is required'),
|
||||
type: provider.isShared ? 'shared' : 'standard',
|
||||
client_id: provider.clientId,
|
||||
client_secret: provider.clientSecret,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user