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
navigator.credentials.get({ password: true, mediation: 'optional' }) throws error: not assignable to parameter of type 'CredentialRequestOptions'. #34550
Severity Code Description Project File Line Suppression State
Error TS2345 (TS) Argument of type '{ password: boolean; mediation: "optional"; }' is not assignable to parameter of type 'CredentialRequestOptions'.
Object literal may only specify known properties, and 'password' does not exist in type 'CredentialRequestOptions'. D:\MyProject\ClientApp (tsconfig or jsconfig project) D:\MyProject\ClientApp\src\app\shared\services\global.service.ts 230 Active
Expected behavior:
It should compile successfully.
Actual behavior:
It throws below error:
Severity Code Description Project File Line Suppression State
Error TS2345 (TS) Argument of type '{ password: boolean; mediation: "optional"; }' is not assignable to parameter of type 'CredentialRequestOptions'.
Object literal may only specify known properties, and 'password' does not exist in type 'CredentialRequestOptions'. D:\MyProject\ClientApp (tsconfig or jsconfig project) D:\MyProject\ClientApp\src\app\shared\services\global.service.ts 230 Active