> This page is for Ask Sunny.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.sunnyhealthai.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sunnyhealthai.com/_mcp/server.

# March 15, 2026

## Version 0.0.23

### New features

#### Automatic token refresh (check-on-send)

The SDK now automatically refreshes authentication tokens before they expire. Before every outgoing message, the SDK checks the access token's JWT `exp` claim and refreshes it if within 5 minutes of expiry. This prevents sessions from losing authentication during long conversations.

No action is needed from your app -- this works transparently with any `idTokenProvider`.

### Bug fixes

* Fixed auth state tracking for server-side conversation creation during token exchange flows.
* Fixed conversation persistence toggling when switching auth types at runtime.

---

## Version 0.0.20

### New features

#### Phone input country codes

The passwordless SMS authentication UI now includes a country code selector with E.164 format support, allowing users outside the US to enter phone numbers with their country prefix.