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

+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>
}