Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Cognito pre token generation lambda trigger

Can we trigger pre token generation lambda in AWS Cognito for app clients (client credentials)?

like image 393
Gursharan Aulakh Avatar asked Jun 13 '26 00:06

Gursharan Aulakh


1 Answers

I figured that out myself and found Cognito trigger "Pre-Token generation" lambda supports the only amendment to ID tokens and not access tokens. So, this will only work if an actual user is trying to get token and not for app clients as app clients only get access token.

like image 118
Gursharan Aulakh Avatar answered Jun 14 '26 18:06

Gursharan Aulakh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!