UNPKG

ggez-banking-sdk

Version:

A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.

31 lines (30 loc) 1.25 kB
import { SecurityAuthenticationTypes } from "../../../constant"; import { createDefaultUserData } from "./user"; const fillEnrollGoogleAuthData = () => { const userAuthenticationData = { type: SecurityAuthenticationTypes.Google_Authenticator, }; return createDefaultUserData({ authentication_data: [userAuthenticationData] }); }; const fillActivateGoogleAuthData = (data) => { const userAuthenticationData = { type: SecurityAuthenticationTypes.Google_Authenticator, code: data.code, }; return createDefaultUserData({ authentication_data: [userAuthenticationData] }); }; const fillDeleteGoogleAuthData = (data) => { const userAuthenticationData = { type: data.authenticationType, code: data.code, }; return createDefaultUserData({ authentication_data: [userAuthenticationData] }); }; const fillDeactivateGoogleAuthData = (data) => { const userAuthenticationData = { type: SecurityAuthenticationTypes.Google_Authenticator, code: data.code, }; return createDefaultUserData({ authentication_data: [userAuthenticationData] }); }; export { fillEnrollGoogleAuthData, fillActivateGoogleAuthData, fillDeactivateGoogleAuthData, fillDeleteGoogleAuthData, };