1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 09:32:51 +00:00

client/server - update message - update authentication

This commit is contained in:
2018-01-28 14:09:08 -06:00
parent 8191603a2c
commit b3ac9003db
6 changed files with 14 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ defmodule MyApp.Data.User do
# need to add token back to map because we don't store it in the database
defp add_extra_params({:error, error}, _), do: {:error, error}
defp add_extra_params({:ok, user}, params) do
{:ok, Map.merge(user, params)}
{:ok, Map.merge(user, %{access_token: params["access_token"], expires_in: params["expires_in"]})}
end
defp insert_battlenet_user(params) do