1.1.2 • Published 7 months ago

@universal-packages/trpc-authentication-session v1.1.2

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

tRPC Authentication Session

npm version Testing codecov

Session dynamics for trpc authentication.

Install

npm install @universal-packages/trpc-authentication-session

npm install @universal-packages/trpc-authentication

Dynamics

By installing this package the default authentication controllers dynamics related to session (user-from-context and set-session) will be overridden to use express-session capabilities.

Context Creator

createSessionContext

You can compound your context to include the session object coming form the request with this context creator.

function createContext(options) {
  return {
    ...createSessionContext(options)
  }
}

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.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago