Skip to main content
Participant
April 26, 2024
Question

Token Issue

  • April 26, 2024
  • 0 replies
  • 295 views

when generarting token mtoken is generating but when used it giving error :

public static function accessToken(){
$payload = [
"iss" => env('ADOBE_P_APP_ID'),
"sub" => env('ADOBE_P_APP_ID'),
"aud" => "https://api.echosign.com",
"exp" => time() + 3600,
];

try {
$token = JWT::encode($payload, env('ADOBE_P_SECRET_ID'),'HS256');
Log::info("Generated access token: $token");
return $token;
} catch (\Exception $e) {
Log::error("Error generating access token: ". $e->getMessage());
return null;
}
}



{
"code": "INVALID_ACCESS_TOKEN",
"message": "Access token provided is invalid or has expired"
}

 

I want to intergate e sign where users should not be asked to authenticate using credential

This topic has been closed for replies.