This file contains 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 * as Google from "expo-auth-session/providers/google"; | |
import { signInWithCredential, GoogleAuthProvider } from "firebase/auth"; | |
import { auth } from "../firebase"; | |
import { useAuth } from "../contextoAutenticacaoFirebase"; | |
import { useNavigation } from "@react-navigation/native"; | |
import * as AuthSession from "expo-auth-session"; | |
export function AutenticacaoGoogle() { | |
const [error, setError] = useState(null); | |
const { navigate } = useNavigation(); |
This file contains 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
// Allow from any origin | |
if (isset($_SERVER['HTTP_ORIGIN'])) { | |
header("Access-Control-Allow-Origin: *"); | |
// header('Access-Control-Allow-Credentials: true'); | |
// header('Access-Control-Max-Age: 86400'); // cache for 1 day | |
} | |
// Access-Control headers are received during OPTIONS requests | |
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { |
This file contains 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 | |
declare(strict_types=1); | |
namespace App\Controller; | |
use Cake\Datasource\EntityInterface; | |
use Cake\Datasource\Exception\RecordNotFoundException; | |
use Cake\Datasource\ResultSetInterface; | |
use Cake\ORM\Table; |
This file contains 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
<html> | |
<head></head> | |
<body> | |
<form action=""> | |
<input type="text" name="cep" placeholder="cep"> | |
<input type="text" name="rua" placeholder="rua"> | |
<input type="text" name="numero" placeholder="numero"> |
This file contains 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
web: vendor/bin/heroku-php-apache2 webroot/ |