Configure the tokens your application is managing :
# config/packages/yokai_security_token.yaml
yokai_security_token:
tokens:
reset_password: ~
Each token can have following options :
generator
: a service id that implementsYokai\SecurityTokenBundle\Generator\TokenGeneratorInterface
duration
: a validDateTime::modify
argument that represent the validity duration for tokens of this typeusages
: an integer that represent the number of allowed usages for tokens of this type (0
means unlimited)keep
: a validDateTime::modify
argument that represent the keep duration for tokens of this typeunique
: a boolean that indicates whether or not the token must be unique per user
Default values fallback to :
generator
:yokai_security_token.open_ssl_token_generator
duration
:+2 days
usages
:1
keep
:+1 month
unique
:false
« Installation • Usage »