File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ interface displayname="ICredentialRepository" {
9
9
public string function getUsernameForUserHandle ( required any userHandle );
10
10
11
11
/**
12
+ * `credentialId` and `userHandle` are both binary data
12
13
* Returns a struct with a `publicKey` and a `signatureCount` property.
14
+ * `null` if no credential is found.
13
15
*/
14
- public struct function lookup ( required any credentialId , required any userHandle );
16
+ public any function lookup ( required any credentialId , required any userHandle );
15
17
/**
16
18
* Returns a struct with a `userHandle`, `publicKey` and a `signatureCount` property.
17
19
*/
Original file line number Diff line number Diff line change @@ -140,8 +140,9 @@ component
140
140
/**
141
141
* `credentialId` and `userHandle` are both binary data
142
142
* Returns a struct with a `publicKey` and a `signatureCount` property.
143
+ * `null` if no credential is found.
143
144
*/
144
- public struct function lookup ( required any credentialId , required any userHandle ) {
145
+ public any function lookup ( required any credentialId , required any userHandle ) {
145
146
var passkey = this
146
147
.newCriteria ()
147
148
.eq ( " credentialId" , arguments .credentialId )
Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ component extends="quick.models.BaseEntity" accessors="true" implements="cbsecur
83
83
/**
84
84
* `credentialId` and `userHandle` are both binary data
85
85
* Returns a struct with a `publicKey` and a `signatureCount` property.
86
+ * `null` if no credential is found.
86
87
*/
87
- public struct function lookup ( required any credentialId , required any userHandle ) {
88
+ public any function lookup ( required any credentialId , required any userHandle ) {
88
89
var passkey = newEntity ()
89
90
.where ( " credentialId" , credentialId )
90
91
.where ( " userId" , toString ( userHandle ) )
You can’t perform that action at this time.
0 commit comments