Add PasswordCredential type (#868)
This commit is contained in:
parent
6762e7bf3f
commit
375de15a6b
2 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import { User } from "@saleor/fragments/types/User";
|
||||
|
||||
export const isSupported = !!(
|
||||
navigator?.credentials?.preventSilentAccess && PasswordCredential
|
||||
navigator?.credentials?.preventSilentAccess && window.PasswordCredential
|
||||
);
|
||||
|
||||
export async function login<T>(
|
||||
|
|
4
webpack.d.ts
vendored
4
webpack.d.ts
vendored
|
@ -4,3 +4,7 @@ declare module "*.svg" {
|
|||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare interface Window {
|
||||
PasswordCredential: PasswordCredential;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue