Skip to content

Instantly share code, notes, and snippets.

khalidbourhaba

  • Nice, France
View GitHub Profile
View index.js
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) {
@khalidbourhaba
khalidbourhaba / .gitignore
Last active Feb 1, 2020
An example of a .gitignore file for a AWS Amplify Project
View .gitignore
#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/
View ConfirmSignUpScreen.js
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';
You can’t perform that action at this time.