Skip to content

Instantly share code, notes, and snippets.

View DesmondSanctity's full-sized avatar
🦀
Crab Ninja

Desmond Obisi DesmondSanctity

🦀
Crab Ninja
View GitHub Profile
@DesmondSanctity
DesmondSanctity / code.js
Last active February 10, 2024 14:14
The code page for the Twilio Authy 2FA demo app
import { useRouter } from 'next/router';
import { useForm } from 'react-hook-form';
import { yupResolver } from '@hookform/resolvers/yup';
import * as Yup from 'yup';
import { Layout } from 'components/account';
import { userService, alertService } from 'services';
export default Code;
@DesmondSanctity
DesmondSanctity / scan.js
Created February 10, 2024 07:29
The scan page for the Twilio Authy 2FA demo app
import { useRouter } from 'next/router';
import { Layout } from 'components/account';
import { alertService, userService } from 'services';
import QRCode from 'react-qr-code';
import { useEffect, useState } from 'react';
export default Login;
function Login() {
@DesmondSanctity
DesmondSanctity / [id].js
Created November 12, 2022 19:57
An update page for our Xata and Cloudinary Jamstack blog
import { useState, useEffect } from 'react'
import { useRouter } from 'next/router'
import {
Button,
Textarea,
Input,
FormControl,
FormLabel,
Container,