hapcat

The Hapcat Backend package.

hapcat.authenticate(username, password)[source]

Authenticate the user.

hapcat.identity(payload)[source]

Get the identity from the JWT payload.

hapcat.makejwtsecret(bits=512)[source]

Read or generate the JWT secret.

hapcat.payload_handler(identity)[source]

Transform the identity object into a payload.