diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-19 14:27:37 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-19 14:27:37 -0700 |
commit | b71cba978a21b74dcef12128af2a4a9e8bbd66f8 (patch) | |
tree | 26fad5e9e3f1fccf61a8d716399b7f954e5e8500 /src/types.ts | |
parent | 5fac314d0623d63515a461b108104d3a3e8af5db (diff) |
Spruce up some comments
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts index c419727..b528978 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,7 +1,13 @@ +/** + * An object that can be passed into navigator.credentials.create(...) in the browser + */ export type AttestationCredentials = { publicKey: PublicKeyCredentialCreationOptions, }; +/** + * An object that can be passed into navigator.credentials.get(...) in the browser + */ export type AssertionCredentials = { publicKey: PublicKeyCredentialRequestOptions, }; @@ -111,6 +117,8 @@ export type ParsedAssertionAuthData = { counterBuf: Buffer, }; -// U2F Presence constant +/** + * U2F Presence constant + */ export const U2F_USER_PRESENTED = 0x01; |