High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
import { Injectable } from '@nestjs/common';
import {
type GenerateAuthenticationOptionsOpts,
type GenerateRegistrationOptionsOpts,
type VerifyAuthenticationResponseOpts,
type VerifyRegistrationResponseOpts,
generateAuthenticationOptions,
generateRegistrationOptions,
verifyAuthenticationResponse,
verifyRegistrationResponse,
} from '@simplewebauthn/server';
@Injectable()
export class WebAuthnRepository {
generateRegistrationOptions(options: GenerateRegistrationOptionsOpts) {
return generateRegistrationOptions(options);
}
verifyRegistrationResponse(options: VerifyRegistrationResponseOpts) {
return verifyRegistrationResponse(options);
}
generateAuthenticationOptions(options: GenerateAuthenticationOptionsOpts) {
return generateAuthenticationOptions(options);
}
verifyAuthenticationResponse(options: VerifyAuthenticationResponseOpts) {
return verifyAuthenticationResponse(options);
}
}