You are here

public function JwtTranscoderInterface::encode in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 src/Transcoder/JwtTranscoderInterface.php \Drupal\jwt\Transcoder\JwtTranscoderInterface::encode()

Encodes a JsonWebToken.

Parameters

\Drupal\jwt\JsonWebToken\JsonWebTokenInterface $jwt: A JWT.

Return value

string The encoded JWT.

1 method overrides JwtTranscoderInterface::encode()
JwtTranscoder::encode in src/Transcoder/JwtTranscoder.php
Encodes a JsonWebToken.

File

src/Transcoder/JwtTranscoderInterface.php, line 36

Class

JwtTranscoderInterface
Interface JwtTranscoderInterface.

Namespace

Drupal\jwt\Transcoder

Code

public function encode(JsonWebTokenInterface $jwt);