Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.17 KB

2-configuration.md

File metadata and controls

32 lines (23 loc) · 1.17 KB

Configuration

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 implements Yokai\SecurityTokenBundle\Generator\TokenGeneratorInterface
  • duration : a valid DateTime::modify argument that represent the validity duration for tokens of this type
  • usages : an integer that represent the number of allowed usages for tokens of this type (0 means unlimited)
  • keep : a valid DateTime::modify argument that represent the keep duration for tokens of this type
  • unique : a boolean that indicates whether or not the token must be unique per user

Default values fallback to :


« InstallationUsage »