0 follower

Interface Yiisoft\Csrf\Hmac\IdentityGenerator\CsrfTokenIdentityGeneratorInterface

Implemented byYiisoft\Csrf\Hmac\IdentityGenerator\SessionCsrfTokenIdentityGenerator

Identity generator returns an ID to be used for the {@see \Yiisoft\Csrf\Hmac\HmacCsrfToken}.

For example, using session ID makes the session a token scope.

Method Details

Hide inherited methods

generate() public abstract method

public abstract string generate ( )
return string

Identity to use for the token.

                public function generate(): string;