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:
1 parent
e81d2333bc
commit
b2984f48f5
2 files changed
+7
-8
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/types": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(types): change update signature of IAuthProvider
|
||||||
@@ -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>
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user