Skip to content

Commit

Permalink
update README #67
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigura committed Mar 16, 2020
1 parent 64f1180 commit e231efa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ Environment variables:
```
export DATABASE_URL=postgres://postgres:password@localhost:5432/geolocation
export GOOGLE_MAPS_API_KEY=AIz...vNkg
export SHARED_DASHBOARD=1
export ADMIN_TOKEN=admin256
export SHARED_DASHBOARD=1 # with auth
export ADMIN_TOKEN=admin256 # admin login
export PASSWORD=test # admin password
```

# auth


### Production mode:

```bash
Expand Down
11 changes: 11 additions & 0 deletions src/client/reducer/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ import { type GlobalState } from 'reducer/state';
export type GetState = () => GlobalState;
export type Dispatch = (action: Action | ThunkAction) => Promise<void>; // eslint-disable-line no-use-before-define
export type ThunkAction = (dispatch: Dispatch, getState: GetState) => Promise<void>;


export type AuthSettings = {
org: string,
accessToken: string,
};

export type AuthInfo = {|
...AuthSettings,
error: string,
|};

0 comments on commit e231efa

Please sign in to comment.