1.11.5 • Published 7 months ago

@universal-packages/express-controllers-authentication v1.11.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Express Controllers Authentication

npm version Testing codecov

universal-authentication implementation on top of universal-express-controllers

Install

npm install @universal-packages/express-controllers-authentication

npm install @universal-packages/express-controllers

Global methods

initialize(options: Object)

Initialize the authentication api and the authentication controller to prepare routing configuration before the ExpressControllers runs. The authentication controller is loaded automatically by ExpressControllers.

import { ExpressControllers } from '@universal-packages/express-controllers'
import { initialize } from '@universal-packages/express-controllers-authentication'

await initialize({ secret: 'my-secret' })

const app = new ExpressControllers({ port: 3000 })
await app.prepare()
await app.run()

Now all authentication actions are available to access on path authentication/<action>

Options

initialize takes the same options as Authentication.

Additionally takes the following ones:

  • rootPath String default: /authentication You can set the root of all authentication routes, ex: /auth/<action>

Authentication Modules

Enabled authentication modules that provide a controllers will be enabled in express controllers if they are enabled in the authentication api. For example the default module provided by universal-authentication is enabled by default.

Typescript

This library is developed in TypeScript and shipped fully typed.

Contributing

The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.

License

MIT licensed.

1.10.5

7 months ago

1.10.4

7 months ago

1.10.7

7 months ago

1.10.6

7 months ago

1.11.0

7 months ago

1.11.4

7 months ago

1.11.3

7 months ago

1.11.2

7 months ago

1.11.1

7 months ago

1.11.5

7 months ago

1.10.3

7 months ago

1.10.2

7 months ago

1.10.1

8 months ago

1.10.0

8 months ago

1.9.0

9 months ago

1.8.2

10 months ago

1.8.8

10 months ago

1.8.7

10 months ago

1.8.6

10 months ago

1.8.5

10 months ago

1.8.4

10 months ago

1.8.3

10 months ago

1.8.1

10 months ago

1.8.0

10 months ago

1.7.5

11 months ago

1.7.4

11 months ago

1.7.3

12 months ago

1.7.2

12 months ago

1.7.1

1 year ago

1.7.0

1 year ago

1.6.28

1 year ago

1.6.27

1 year ago

1.6.29

1 year ago

1.6.31

1 year ago

1.6.30

1 year ago

1.6.33

1 year ago

1.6.32

1 year ago

1.6.35

1 year ago

1.6.34

1 year ago

1.6.24

1 year ago

1.6.23

1 year ago

1.6.26

1 year ago

1.6.25

1 year ago

1.6.20

1 year ago

1.6.22

1 year ago

1.6.21

1 year ago

1.6.19

1 year ago

1.6.18

1 year ago

1.6.17

2 years ago

1.6.9

2 years ago

1.6.11

2 years ago

1.6.8

2 years ago

1.6.10

2 years ago

1.6.13

2 years ago

1.6.12

2 years ago

1.6.15

2 years ago

1.6.14

2 years ago

1.6.16

2 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.6.7

2 years ago

1.6.6

2 years ago

1.6.5

2 years ago

1.2.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago