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

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
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