Skip to content

Commit b2984f4

Browse files
authored
fix(types): change update signature of IAuthProvider (medusajs#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.
1 parent e81d233 commit b2984f4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.changeset/eighty-moles-occur.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/types": patch
3+
---
4+
5+
fix(types): change update signature of IAuthProvider

packages/core/types/src/auth/provider.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ export interface AuthIdentityProviderService {
2525
getState: (key: string) => Promise<Record<string, unknown> | null>
2626
}
2727

28-
/**
29-
* ## Overview
30-
*
31-
* Authentication provider interface for the auth module.
32-
*
33-
*/
3428
export interface IAuthProvider {
3529
authenticate(
3630
data: AuthenticationInput,
@@ -44,8 +38,8 @@ export interface IAuthProvider {
4438
data: AuthenticationInput,
4539
authIdentityProviderService: AuthIdentityProviderService
4640
): Promise<AuthenticationResponse>
47-
update: (
41+
update(
4842
data: Record<string, unknown>,
4943
authIdentityProviderService: AuthIdentityProviderService
50-
) => Promise<AuthenticationResponse>
44+
): Promise<AuthenticationResponse>
5145
}

0 commit comments

Comments
 (0)