-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Summary
When using an auth adapter such as Azure , getToken takes an option argument:
Clerk also takes in an options argument for getToken.
However, the current AuthContextInterface implementation does not support this on getToken (while many other methods in this interface allow arguments that are typed via generics):
Motivation
The current type will therefore lead to a typescript error when trying to use the (existing) argument (i.e. in Azure):
Detailed proposal
Add another generic TGetTokenOptions here:
and change the getToken type to:
getToken(options?: TGetTokenOptions): Promise<null | string>Are you interested in working on this?
- I'm interested in working on this
Metadata
Metadata
Assignees
Labels
No labels
