ozvault home

OZVAULT CONNECT · REVOCATION

Revoke authorization and disconnect

Revoke OzVault access and refresh tokens with RFC 7009, and handle users who disconnect your app from their account.

Reviewed Published by OzVault

Disconnect from your app

#

When a user disconnects OzVault in your app, POST the refresh token (or access token) to /oauth/revoke. Revoking a refresh token ends every token in that session. The endpoint returns 200 even for unknown tokens, as RFC 7009 requires. Then delete the tokens you stored.

Shell
curl -X POST https://ozvault.lol/oauth/revoke -u "$OZVAULT_CLIENT_ID:$OZVAULT_CLIENT_SECRET" -d token=ovr_...

Users can revoke at any time

#

Users manage connections at Account → Connected apps. Revocation is immediate: access tokens return 401 INVALID_TOKEN, refresh requests return invalid_grant, unfinished uploads are cancelled. Treat either signal as "disconnected" and offer to connect again. Files your app stored stay in the user's account; if they reconnect, your app sees its storage area and the same sub again.

When you disable or delete your application

#

Disabling an application in its settings refuses new authorizations, token requests and API calls until you enable it again. Deleting it revokes every connection and credential permanently; users keep their files.

Clear documentation is part of the product.