Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeScript] Allow to pass custom provider types to addRefreshAuth functions #9428

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Nov 8, 2023

Problem

When you have a custom dataProvider with custom methods, passing it to the addRefreshAuthToDataProvider method loose its type. Same for the addRefreshAuthToAuthProvider.

Solution

Declare a type parameter. You don't have to specify the type, it's inferred

@fzaninotto fzaninotto merged commit f030350 into master Nov 8, 2023
9 checks passed
@fzaninotto fzaninotto deleted the allow-custom-providers-refresh-token-functions branch November 8, 2023 12:51
@fzaninotto fzaninotto added this to the 4.15.4 milestone Nov 8, 2023
@fzaninotto fzaninotto changed the title Allow to pass custom provider types to addRefreshAuth functions [TypeScript] Allow to pass custom provider types to addRefreshAuth functions Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants