fix(types): change update signature of IAuthProvider (#12496)

Change the signature of the `update` method in `IAuthProvider` to match other methods. this is necessary as in the generated references `update` was being inferred as a property rather than a method.
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-05-15 11:02:05 +00:00
1 parent e81d2333bc
commit b2984f48f5
2 files changed
+7 -8

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(types): change update signature of IAuthProvider
+2 -8
View File
@@ -25,12 +25,6 @@ export interface AuthIdentityProviderService {
getState: (key: string) => Promise<Record<string, unknown> | null> getState: (key: string) => Promise<Record<string, unknown> | null>
} }
/**
* ## Overview
*
* Authentication provider interface for the auth module.
*
*/
export interface IAuthProvider { export interface IAuthProvider {
authenticate( authenticate(
data: AuthenticationInput, data: AuthenticationInput,
@@ -44,8 +38,8 @@ export interface IAuthProvider {
data: AuthenticationInput, data: AuthenticationInput,
authIdentityProviderService: AuthIdentityProviderService authIdentityProviderService: AuthIdentityProviderService
): Promise<AuthenticationResponse> ): Promise<AuthenticationResponse>
update: ( update(
data: Record<string, unknown>, data: Record<string, unknown>,
authIdentityProviderService: AuthIdentityProviderService authIdentityProviderService: AuthIdentityProviderService
) => Promise<AuthenticationResponse> ): Promise<AuthenticationResponse>
} }