Can an access token be revoked?

At one point I put a NFC tag in a car with a cloud endpoint to control a set of lights in Hubitat. (I know: The link should be in the phone, not in the tag). That car was involved in a major crash and now is sitting in a scrap yard somewhere. It seems there is no way to manage access tokens from HE interface like in HA.

Is there a way to revoke that access token?

Yes see release notes here:
https://docs2.hubitat.com/en/release-notes/release-221

revokeAccessToken()

@bertabcd1234 might want to add it to the docs.

3 Likes

Hmmm... Oh yeah, sorry to hear about the accident (?)...

Best I can think of in terms of the token is re-installing the app... But thankfully I am not the only one thinking about this... :slight_smile: Nice work @ritchierich

2 Likes

If it is a custom app endpoint it can call createAccessToken() or simply delete state.accessToken.

It is a cloud endpoint trigger in RM

Employee's car.

Removing the rule (if you need it may want to clone first) should do it.

3 Likes

Sorry to hear you can't track your employee's car anymore... :wink: Hope your employee is ok... (btw, don't feel a need to respond... just having some fun late at night.... :slight_smile: )

He fell asleep at the wheel, rolled over three times while hitting boulders and finish against a utility pole. He walked out without a scratch.

3 Likes

Wow... what a rollercoaster...just reading that.... Glad to hear they are ok...

1 Like