MDodge

MDodge

Auth using Phoenix API with React Native frontend in a separate code base

Hey all,

I’m writing an app using Phoenix as an API and I have a separate codebase for React Native.

I’m researching the best way to handle Auth in this scenario. I’ve been looking around quite a bit and I’m coming up with a lot of different answers, and I’m struggling to distill it down into the best direction.

I’d like users to be able to sign up in a traditional way with UN/PW, but I plan to implement OAUTH and allow users to register with Google and Apple as well.

What are the current best options for this scenario?

First Post!

kokolegorille

kokolegorille

Hi and welcome,

Probably this can help…

Last Post!

experimentix

experimentix

Hi

I’m building same thing as you, api and backend in phoenix and for the app react native.
How would you use uberauth as initial authorization???

Im still learning both elixir/phoenix and react native and for what i’ve seen the social login would be made in the app and after response we could communicate with the api (guardian) creating a new user or logging in the existing one

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement