You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
Summary
When using an auth adapter such as Azure ,
getToken
takes an option argument:redwood/packages/auth-providers/azureActiveDirectory/web/src/azureActiveDirectory.ts
Lines 40 to 44 in 231e1f9
Clerk also takes in an options argument for
getToken
.However, the current
AuthContextInterface
implementation does not support this ongetToken
(while many other methods in this interface allow arguments that are typed via generics):redwood/packages/auth/src/AuthContext.ts
Line 54 in 231e1f9
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:redwood/packages/auth/src/AuthContext.ts
Lines 7 to 20 in 231e1f9
and change the
getToken
type to:Are you interested in working on this?
The text was updated successfully, but these errors were encountered: