Station Authentication
auth.getstation.com website and @getstation/authentication-ui
package.
![Netlify Status](https://api.netlify.com/api/v1/badges/73613984-df80-46ee-a8aa-b819f0c130d8/deploy-status)
![npm version](https://badge.fury.io/js/%40getstation%2Fauthentication-ui.svg)
Package usage
$ yarn add @getstation/authentication-ui
import { ProvidedAuthenticationBox } from '@getstation/authentication-ui';
<ProvidedAuthenticationBox
apiGQLEndpoint={process.env.GRAPHQL_URI}
firebaseConfig={{
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
}}
allowSignUp={false}
onAuthenticated={this.props.onAuthenticated}
/>
Development
Setup
- Clone this repository
- Run
yarn
to install dependencies - Create a
.env
file with a unique ENVKEY
generated through EnvKey App - Run
yarn start
to start the dev server
Commands
yarn start
will start the development server.
yarn run storybook
will start the Storybook server.
yarn run build:package
will build the published package.
Deployment
Website
master
is deployed on auth.getstation.com
with Netlify.
master
is deployed on auth-dev.getstation.com
with development environement (Firebase Dev) with Netlify. ![Netlify Status](https://api.netlify.com/api/v1/badges/2957e020-405a-4a63-8dcd-26356674f9f0/deploy-status)
Package
The source code is transpiled thru babel and is published with src/package/index
as entry point.