Skip to content

kurab/react-typescript-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

React typescript / Firebase Auth

typescript React App sample with Firebase Authentication.

supported Firebase login/register methods:

  • Email and Password
  • Facebook

firebase module version

9.0.1

usage

setup Firebase Authentication and Facebook App at first.

ref.(JP):

install package

$ cd app
$ npm i

edit .env

setup Firebase config parameters on .env file. copy .env.sample and fill parameters.

start app

$ yarn start

localhost to https with Docker

Facebook login requires secure connection. It fails when redirect URI is not https.

For example, by using SteveLTN/https-portal image, container can forward request: https://localhost:3443 to http://localhost:3000. If not work, add following lines to docker-compose.yml.

    extra_hosts:
      - "host.docker.internal:172.17.0.1"
$ docker-compose up -d

Ignore security warning on Chrome Browser.

chrome://flags/#allow-insecure-localhost

via. Docker でローカル開発環境の https 化

access

https://locahost:3443

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published