Skip to content

Commit

Permalink
Merge pull request #51 from DockYard/fix_readme
Browse files Browse the repository at this point in the history
fix authorization_uri/1 example in the README
  • Loading branch information
xn authored May 9, 2023
2 parents f39c60b + a3c1317 commit ddafedc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ get("/session/authorization-uri", SessionController, :authorization_uri)
# you could also take the `provider` as a query param to pass into the function
def authorization_uri(conn, _params) do
google_config = Application.fetch_env!(:my_app, :google_oidc_config)
json(conn, %{uri: OpenIDConnect.authorization_uri(google_config)})
{:ok, uri} = OpenIDConnect.authorization_uri(google_config)

json(conn, %{uri: uri})
end

# The `Authentication` module here is an imaginary interface for setting session state
Expand Down

0 comments on commit ddafedc

Please sign in to comment.