package sihl-token
Sihl service to deal with tokens
Install
Dune Dependency
Authors
Maintainers
Sources
0.3.0-rc2.tar.gz
md5=1fd667e26ef891aa41d6ccd0001edc74
sha512=31ae7bf34fa06570a69b3975298f9b7700f93b06887d90730938527dab0078b94c59fcb64d7355cf220c9d0a0a4ebe33344a3bac932db339581c453cb27edc6b
doc/index.html
Sihl Token
A token is a string that has some values associated with it. They are often used for authentication by associating a user_id
.
This documentation is WIP, please refer to Sihl.Contract.Token
and Sihl_token
meanwhile.
Backends
sihl-token
provides 4 backend implementations.
JSON Web Token
JSON Web Token (JWT) is a standard for client-side tokens. The associated data is stored in the actual token, which is signed and sent to the client.
JWTs are valid until they expire. If you want to invalidate them before, it is necessary to keep a blacklist on the server. This requires some persistent storage.
Use either Sihl_token.JwtPostgreSql
or Sihl_token.JwtMariaDb
.
Server-side
Server-side tokens have their data persisted on the server. This is useful for sensitive information.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page