Skip to content

Commit 3f89e66

Browse files
fix(ts): mark options provider config option internal (#6564)
* chore(dev): use workspace modules in Svelte app * fix(ts): mark `options` provider config option internal
1 parent 533320e commit 3f89e66

File tree

4 files changed

+116
-85
lines changed

4 files changed

+116
-85
lines changed

apps/dev/sveltekit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"vite": "4.0.1"
2020
},
2121
"dependencies": {
22-
"@auth/core": "0.2.5",
23-
"@auth/sveltekit": "0.1.12"
22+
"@auth/core": "workspace:*",
23+
"@auth/sveltekit": "workspace:*"
2424
},
2525
"type": "module"
2626
}

packages/core/src/providers/credentials.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ export interface CredentialsConfig<
4949

5050
export type CredentialsProviderType = "Credentials"
5151

52-
export type CredentialsConfigInternal<
53-
C extends Record<string, CredentialInput> = Record<string, CredentialInput>
54-
> = CredentialsConfig<C> & { options: CredentialsConfig<C> }
55-
5652
/**
5753
* The Credentials provider allows you to handle signing in with arbitrary credentials,
5854
* such as a username and password, domain, or two factor authentication or hardware device (e.g. YubiKey U2F / FIDO).

packages/core/src/providers/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,16 @@ export type Provider<P extends Profile = Profile> = (
6565
| EmailConfig
6666
| CredentialsConfig
6767
) & {
68+
/**
69+
* Used to deep merge user-provided config with the default config
70+
* @internal
71+
*/
6872
options: Record<string, unknown>
6973
}
7074

7175
export type BuiltInProviders = Record<
7276
OAuthProviderType,
73-
(options: Partial<OAuthConfig<any>>) => OAuthConfig<any>
77+
(config: Partial<OAuthConfig<any>>) => OAuthConfig<any>
7478
> &
7579
Record<CredentialsProviderType, typeof CredentialsProvider> &
7680
Record<EmailProviderType, typeof EmailProvider>

0 commit comments

Comments
 (0)