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
const APPLE_KEYS_URL = "https://appleid.apple.com/auth/keys"; | |
const APPLE_ISS_URL = "https://appleid.apple.com"; | |
const validateAppleIdentityToken = async (identityToken, appleUserId) => { | |
const { data } = await axios.get(APPLE_KEYS_URL); | |
const applePublicKey = data; | |
const tokenDecodedHeader = jwtDecode(identityToken, { header: true }); | |
const kid = tokenDecodedHeader.kid; | |
const sharedKid = applePublicKey.keys.filter((x) => x["kid"] === kid)[0]?.[ |
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, { useEffect, useState } from 'react' | |
import { Animated, View, StyleSheet } from 'react-native' | |
const CustomSemiCircleProgress = ({ | |
children, | |
animationSpeed = 2, | |
initialPercentage = 0, | |
percentage = 10, | |
minValue, |
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
<?php | |
// Include the database configuration file | |
include '/server/connection.php'; | |
if(is_uploaded_file($_FILES['file']['tmp_name'])){ | |
// File upload path | |
$targetDir = "../uploads/"; | |
$file=$_FILES['file']['tmp_name']; |
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
//RegExp of mobile number validtion | |
let countryCode = '880'; //mobile country code | |
let numberLength=10; //length of mobile number | |
let mobilePattern = `^((\\+${countryCode}-?)|0)?[0-9]{${numberLength.toString()}}$`; |