How do I add permissions (not roles) using the actions?

I found this

and tried

exports.onExecutePostLogin = async (event, api) => {
  if(event.user.user_metadata.assigned_permissions)
    api.idToken.setCustomClaim('permissions', event.user.user_metadata.assigned_permissions);
  else
    api.idToken.setCustomClaim('permissions', ["weirdo"]);
};

But I still don’t see anything (I would expect to see at least weirdo even if the getting the permissions is messed)

User is {"https://secondave.net/roles":[],"https://secondave.net/picture":"https://lh3.googleusercontent.com/a/ACg8ocL7LkvLhW8oA9ZaOx9WczixrQkJJZSE7JeuUdDrY1aD6sE=s96-c","given_name":"Jackie","family_name":"Gleason","nickname":"jackiegleason","name":"Jackie Gleason","picture":"https://lh3.googleusercontent.com/a/ACg8ocL7LkvLhW8oA9ZaOx9WczixrQkJJZSE7JeuUdDrY1aD6sE=s96-c","locale":"en","updated_at":"2024-01-15T15:39:37.218Z","email":"jackiegleason@gmail.com","email_verified":true,"sub":"google-oauth2|111260033634073020811"} SiteBar.jsx:25:12