2 operation(s). Part of the API index.
Call these as $client-><service>-><method>(...). <service> is the client field for this
group — the README lists the field name for every service.
These pages group operations the way the OpenAPI specification tags them, which
is not always one field per page.
GET /api/jwt/{JwtAppName}/token
Retrieve JWT token by Access Token
Retrieves a JWT token using an Access Token obtained after successful login.
function callGetJWTTokenByAccessToken($client) {
$jwtAppName = '<jwtAppName>'; //Required
$nonce = '<nonce>'; //Optional
try {
$response = $client->jwt->getJWTTokenByAccessToken(jwtAppName: $jwtAppName, nonce: $nonce);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
JwtAppName |
path | string | yes | JWT App Name |
Nonce |
query | string | no | random nonce claim |
JWTSignature
POST /api/jwt/{JwtAppName}/login
Retrieve JWT token
Retrieves a JWT token using login credentials such as Email, Phone, Username, and Password.
function callGetJWTTokenByLoginCredentials($client) {
$jwtAppName = '<jwtAppName>'; //Required
$getJWTTokenByLoginCredentialsRequest = new \LoginRadius\Sdk\Internal\OpenApi\Model\GetJWTTokenByLoginCredentialsRequest([]); //Required
$nonce = '<nonce>'; //Optional
try {
$response = $client->jwt->getJWTTokenByLoginCredentials($getJWTTokenByLoginCredentialsRequest, jwtAppName: $jwtAppName, nonce: $nonce);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
JwtAppName |
path | string | yes | JWT App Name |
Nonce |
query | string | no | random nonce claim |
object as application/json.
JWTSignature