Fakultas Ilmu Komputer UI

Commit 594751f7 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix create_local_token function

parent 6d5c0d59
......@@ -11,7 +11,7 @@ defmodule DiskuyWeb.Auth.GoogleAuth do
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} ->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment