Skip to content

Commit bba9610

Browse files
authored
Export types and register methods from hapi asap package (#30)
* v0.1.3-beta * 0.1.3-beta * v0.1.3-beta1 * 0.1.3
1 parent 281d3b0 commit bba9610

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/hapi-asap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ordermentum/hapi-asap",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"main": "build/index.js",
55
"license": "MIT",
66
"files": [

packages/hapi-asap/src/middleware.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,23 @@ const implementation = (_server: Hapi.Server, options?: any) => {
4747
* @param opts AuthenticatorOptions
4848
*
4949
*/
50-
const register = async (
50+
const register = (
5151
server: Hapi.Server,
5252
options: AuthenticatorOptions
53-
): Promise<void> => {
53+
) => {
5454
server.auth.scheme('hapi-asap', implementation);
5555
server.auth.strategy('hapi-asap', 'hapi-asap', options);
5656
};
5757

58-
export const plugin: Hapi.Plugin<AuthenticatorOptions> = {
58+
const plugin: Hapi.Plugin<AuthenticatorOptions> = {
5959
register,
6060
pkg: { name: 'ASAP Authentication', version: '0.1.0' },
6161
};
6262

63+
export {
64+
register,
65+
AuthenticatorOptions,
66+
plugin
67+
}
68+
6369
export default plugin;

0 commit comments

Comments
 (0)