···8899## [Unreleased]
10101111+### Breaking Changes
1212+1313+- Rename `Atex.XRPC.OAuthClient.update_plug/2` to `update_conn/2`, to match the
1414+ naming of `from_conn/1`.
1515+1116### Added
12171318- `Atex.OAuth.Plug` now requires a `:callback` option that is a MFA tuple
···7979 Ideally should be called at the end of routes where XRPC calls occur, in case
8080 the client has transparently refreshed, so that the user is always up to date.
8181 """
8282- @spec update_plug(Plug.Conn.t(), t()) :: Plug.Conn.t()
8383- def update_plug(%Plug.Conn{} = conn, %__MODULE__{} = client) do
8282+ @spec update_conn(Plug.Conn.t(), t()) :: Plug.Conn.t()
8383+ def update_conn(%Plug.Conn{} = conn, %__MODULE__{} = client) do
8484 Plug.Conn.put_session(conn, :atex_oauth, %{
8585 access_token: client.access_token,
8686 refresh_token: client.refresh_token,