Skip to content

Commit

Permalink
Fix firebase_user
Browse files Browse the repository at this point in the history
  • Loading branch information
vtm9 committed Nov 19, 2024
1 parent bb44a99 commit 6f0737f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@ defmodule Codebattle.Auth.User.FirebaseUser do
{:ok, %Req.Response{status: 200, body: body}} ->
firebase_uid =
body
|> Jason.decode!()
|> Map.get("localId")

{:ok, firebase_uid}

{:ok, %Req.Response{status: 400, body: body}} ->
error_message =
body
|> Jason.decode!()
|> Map.get("error")
|> Map.get("message")

Expand All @@ -89,15 +87,13 @@ defmodule Codebattle.Auth.User.FirebaseUser do
{:ok, %Req.Response{status: 200, body: body}} ->
firebase_uid =
body
|> Jason.decode!()
|> Map.get("localId")

{:ok, firebase_uid}

{:ok, %Req.Response{status: 400, body: body}} ->
error_message =
body
|> Jason.decode!()
|> Map.get("error")
|> Map.get("message")

Expand All @@ -122,7 +118,6 @@ defmodule Codebattle.Auth.User.FirebaseUser do
{:ok, %Req.Response{status: 400, body: body}} ->
error_message =
body
|> Jason.decode!()
|> Map.get("error")
|> Map.get("message")

Expand Down

0 comments on commit 6f0737f

Please sign in to comment.