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
2025-05-15 11:02:05 +00:00
committed by GitHub
parent e81d2333bc
commit b2984f48f5
2 changed files with 7 additions and 8 deletions
+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>
}
/**
* ## Overview
*
* Authentication provider interface for the auth module.
*
*/
export interface IAuthProvider {
authenticate(
data: AuthenticationInput,
@@ -44,8 +38,8 @@ export interface IAuthProvider {
data: AuthenticationInput,
authIdentityProviderService: AuthIdentityProviderService
): Promise<AuthenticationResponse>
update: (
update(
data: Record<string, unknown>,
authIdentityProviderService: AuthIdentityProviderService
) => Promise<AuthenticationResponse>
): Promise<AuthenticationResponse>
}