Skip to content

Commit 244067f

Browse files
committed
Expose JWT generation to the public
1 parent b1cc656 commit 244067f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Client.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,14 @@ public static function authRequest(RequestInterface $request, Basic $credentials
215215

216216
return $request;
217217
}
218+
219+
/**
220+
* @param array $claims
221+
* @return \Lcobucci\JWT\Token
222+
*/
223+
public function generateJwt($claims = []) {
224+
return $this->credentials->generateJwt($claims);
225+
}
218226

219227
/**
220228
* Takes a URL and a key=>value array to generate a GET PSR-7 request object

0 commit comments

Comments
 (0)