Skip to content

Commit

Permalink
Merge pull request #13 from veracity/fix-exports
Browse files Browse the repository at this point in the history
Fix exports
  • Loading branch information
rudfoss committed Aug 28, 2019
2 parents 041eef7 + 2b635a7 commit b7c8f62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,14 @@ store|Store \| MemoryStore|A store instance where session data will be stored. Y

Property|Type|Description
-|-|-
appOrRouter|Router|Required to attach passport and session middleware as well as setting up your authentication routes.<br>Usually this is an express application instance, but a router is also supported.
appOrRouter|Router|Required to attach passport and session middleware as well as setting up your authentication routes. Usually this is an express application instance, but a router is also supported.
loginPath?<br>="/login"|string|Specify the url path where users can log in. E.g.: /auth/login
logoutPath?<br>="/logout"|string|Specify the url path where users can log out
strategySettings|IVeracityAuthFlowStrategySettings,|Define all required settings to set up the Veracity authentication strategy.
sessionSettings|IMakeSessionConfigObjectOptions|Define required settings for the session middleware.
onBeforeLogin?<br>=function Passthrough function|RequestHandler|A handler that is run before the login process begins.<br>Note that this handler MUST call next() in order to continue the login process.
onVerify?<br>=function Passthrough that stores everything|VerifierFunction<TUser>|A function that is called once the user has completely logged in.<br>Here you can specify how the user object will look when it's attached to req.user
onLoginComplete?<br>=function|RequestHandler|The handler to call when the login has completed.<br>Defaults to handler that redirects you to whatever was sent in the returnTo query parameter on login or to "/".
onBeforeLogin?<br>=function Passthrough function|RequestHandler|A handler that is run before the login process begins. Note that this handler MUST call next() in order to continue the login process.
onVerify?<br>=function Passthrough that stores everything|VerifierFunction<TUser>|A function that is called once the user has completely logged in. Here you can specify how the user object will look when it's attached to req.user
onLoginComplete?<br>=function|RequestHandler|The handler to call when the login has completed. Defaults to handler that redirects you to whatever was sent in the returnTo query parameter on login or to "/".

### IVeracityAuthFlowStrategySettings

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@veracity/node-auth",
"version": "0.3.0-beta",
"version": "0.3.1-beta",
"description": "A library for authenticating with Veracity and retrieving one or more access tokens for communicating with APIs.",
"scripts": {
"build:copy-files": "ts-node -T scripts/copy-files.ts",
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import * as auth from "./auth"

export const VeracityAuthFlowStrategy = auth.VeracityAuthFlowStrategy
import { VeracityAuthFlowStrategy } from "./auth"
export { VeracityAuthFlowStrategy }

0 comments on commit b7c8f62

Please sign in to comment.