Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 594751f7 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix create_local_token function

parent 6d5c0d59
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ defmodule DiskuyWeb.Auth.GoogleAuth do
end
def create_local_token(token) do
{:ok, profile} = ElixirAuthGoogle.get_user_profile(token.access_token)
{:ok, profile} = ElixirAuthGoogle.get_user_profile(token)
{email, username, picture} = {profile[:email], profile[:name], profile[:picture]}
case Account.get_by_email(email) do
{:ok, user} ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment