Skip to main content
Access tokens expire after 1 hour. Refresh tokens let you get a new access token without the user going through the authorization flow again. This page covers the full token lifecycle.

Token types


Storing tokens

Always store tokens encrypted at rest. Never store them in plain text, cookies without encryption, or client-side storage.

Refreshing the access token

Call the token endpoint with grant_type: refresh_token before the access token expires. The old token pair is invalidated immediately — store the new tokens right away.
Response:

Implementing an auto-refresh wrapper

Build a helper that checks expiry before every API call and refreshes proactively:

Revoking a token

Revoke tokens when a user disconnects your app from their account on your platform. This immediately invalidates both the access token and its paired refresh token.
Users can also revoke access directly from their Monei settings at any time. When this happens, subsequent API calls with that token return 401. Your app must handle this and prompt the user to reconnect.

Security

Key storage, CSRF protection, and production checklist

Managing Grants

Let users see and manage their connected apps