Lines Matching full:token
39 * Create a new instance from a token
41 * @param $token
45 public static function validate($token) argument
47 [$header, $payload, $signature] = sexplode('.', $token, 3, '');
84 if (file_get_contents($file) !== $token) {
94 * Loads an existing token if available
110 $token = new self($user, time());
111 $token->save();
112 return $token;
117 * Get the JWT token for this instance
142 * Save the token for the user
153 * Get the user of this token
163 * Get the issued timestamp of this token
173 * Get the storage file for this token
177 * @param string $user The user the token is for
184 $file = $conf['metadir'] . '/jwt/' . $hash[0] . '/' . $hash . '.token';