# Keycloak Action token SPI | Version 15.0.2

**URL:** <https://forum.keycloak.org/t/keycloak-action-token-spi-version-15-0-2/15564>\
**Category:** Getting advice\
**Created:** [May 17, 2022, 4:33am UTC](https://forum.keycloak.org/t/keycloak-action-token-spi-version-15-0-2/15564 "2022-05-17T04:33:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankajchauhan](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@pankajchauhan](https://forum.keycloak.org/u/pankajchauhan)\
**Post date:** [May 17, 2022, 4:33am UTC](https://forum.keycloak.org/t/keycloak-action-token-spi-version-15-0-2/15564/1 "2022-05-17T04:33:49Z")

</div>

I have created an SPI to generate action tokens by extendin the AbstractActionTokenHandler class as described in the official documentation. I am also overriding canUseTokenRepeatedly method and returning boolean false so that the token can be used only one time, but I am still able to resuse the token multiple times. I have verified that the canUseTokenRepeatedly method is getting called before handleToken method.
