public function createToken(CanVerifyEmailContract $user, $expiration): string
    {
        $payload = $this->buildPayload($user, $user->getEmailForVerification(), $expiration);

        return hash_hmac('sha256', $payload, $this->getKey());
    }
public function createToken(CanVerifyEmailContract $user, $expiration): string
    {
        $payload = $this->buildPayload($user, $user->getEmailForVerification(), $expiration);

        return hash_hmac('sha256', $payload, $this->getKey());
    }
public function createToken ( CanVerifyEmailContract $ user , $ expiration ) : string { $ payload = $ this -> buildPayload ( $ user , $ user -> getEmailForVerification ( ) , $ expiration ) ; return hash_hmac ( 'sha256' , $ payload , $ this -> getKey ( ) ) ; }
Create a new email verification token for the given user.

@param \Rinvex\Auth\Contracts\CanVerifyEmailContract $user
@param int                                           $expiration

@return string
Create a new email verification token for the given user .