This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aws = require('aws-sdk'); | |
var ddb = new aws.DynamoDB(); | |
exports.handler = async (event, context) => { | |
let date = new Date(); | |
var tableName = 'User-oeky4hdaijah5b4deuz3c3l62u-dev' // or set dynamic via process.env | |
// If the required parameters are present, proceed | |
if (event.request.userAttributes.sub) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#amplify | |
amplify/\#current-cloud-backend | |
amplify/.config/local-* | |
amplify/mock-data | |
amplify/team-provider-info.json | |
amplify/backend/amplify-meta.json | |
amplify/backend/awscloudformation | |
build/ | |
dist/ | |
node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { memo, useState } from 'react'; | |
import { StyleSheet, Alert } from 'react-native'; | |
import Background from '../components/Background'; | |
import BackButton from '../components/BackButton'; | |
import Logo from '../components/Logo'; | |
import Header from '../components/Header'; | |
import TextInput from '../components/TextInput'; | |
import { theme } from '../core/theme'; | |
import Button from '../components/Button'; | |
import { confirmCodeValidator } from '../core/utils'; |