@appngo-sk/auth
v0.0.1
Published
Auth module
Downloads
7
Readme
Auth module
- Create React env file
- Add firebase config
REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_STORAGE_BUCKET=
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=
REACT_APP_FIREBASE_APP_ID=
REACT_APP_FIREBASE_MEASUREMENT=
- Add Provider on top of the app
import {AuthProvider, LoginPage} from '@appngo-sk/auth'
const App = () => {
return (
<AuthProvider>
...
<LoginPage/>
...
</AuthProvider>
)
}