This is a plugin for hapi.js that exposes [NextAuth's database adapter](https://next-auth.js.org/tutorials/creating-a-database-adapter) via HTTP. Bring your own database.
// the only required parameter is a function that returns your implementation of the NextAuthAdapter
nextAuthAdapterFactory,
}});
```
Reference the [next-auth typings](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/next-auth/adapters.d.ts#L38-L77) for the adapter interface.
Options consist of:
-`nextAuthAdapterFactory` - a function that returns your implementation of the NextAuthAdapter, it takes the Hapi Request as the sole argument.
-`basePath` - a string that all next auth endpoints will be served from
-`sharedSecret` - the secret used for basic authentication to the nextauth endpoints
-`validators` - an object containing
-`profile` - a Joi schema that validates a profile
-`user` - a Joi schema that validates a user
-`userId` - a Joi schema that validates a userId
-`session` - a Joi schema that validates a session
-`tags` - tags to add to the endpoints
Defaults are defined in [`src/index.ts`](src/index.ts)