Skip to content

Commit

Permalink
Raise exception if api_access_token or conn.private.api_renewal_token…
Browse files Browse the repository at this point in the history
… not set
  • Loading branch information
danschultzer committed Sep 27, 2021
1 parent dd5a80f commit 5b18531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule MyAppWeb.API.V1.AuthorizationController do
|> Plug.callback_upsert(provider, params, redirect_uri(conn))
|> case do
{:ok, conn} ->
json(conn, %{data: %{access_token: conn.private[:api_access_token], renewal_token: conn.private[:api_renewal_token]}})
json(conn, %{data: %{access_token: conn.private.api_access_token, renewal_token: conn.private.api_renewal_token}})

{:error, conn} ->
conn
Expand Down

0 comments on commit 5b18531

Please sign in to comment.