Skip to content

Commit e4d078b

Browse files
committed
chore: add key-value adapter to the dev-demo tfa plugin
1 parent ae600b7 commit e4d078b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev-demo/resources/adminuser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import AdminForthAdapterS3Storage from '../../adapters/adminforth-storage-adapte
99
import AdminForthAdapterGoogleOauth2 from '../../adapters/adminforth-google-oauth-adapter/index.js';
1010
import OpenSignupPlugin from '../../plugins/adminforth-open-signup/index.js';
1111
import OAuthPlugin from '../../plugins/adminforth-oauth/index.js';
12-
12+
import KeyValueAdapterRam from '../../adapters/adminforth-key-value-adapter-ram/index.js';
1313

1414
async function allowedForSuperAdmin({ adminUser }: { adminUser: AdminUser }): Promise<boolean> {
1515
return adminUser.dbUser.role === 'superadmin';
@@ -111,6 +111,7 @@ export default {
111111
return (true);
112112
},
113113
passkeys: {
114+
keyValueAdapter: new KeyValueAdapterRam(),
114115
credentialResourceID: "passkeys",
115116
credentialIdFieldName: "credential_id",
116117
credentialMetaFieldName: "meta",

0 commit comments

Comments
 (0)