Revert "Merge pull request #4901 from xihai01/devise-jwt"#4934
Revert "Merge pull request #4901 from xihai01/devise-jwt"#4934
Conversation
|
Hey @seanmarcia! |
|
Hey @xihai01 the slack link on the Ruby for Good site should be working, you may be using an old one, you can find an up to date link on this page: https://rubyforgood.org/join-us Linda posted above the major concern I had with the |
|
@seanmarcia We also have a public repo hosting the frontend written in react native. Here is the link to it -> https://github.com/ctc-casa-ios/ios-app On the frontend, the authentication is handled using a simple implementation of redux with useContext + useReducer hooks. |
|
In essence, you are creating API for a mobile app to consume. You should be isolating everything to the API and the routes for that API. The convention is for your controllers/routes/etc to all be in an Then your cors file should look something like: resource '/api/v1/*', # adjust this to match your API endpoints
headers: :any,
methods: [methods you are going to use],
expose: %w[Authorization]Hopefully this makes sense. :) |
|
@seanmarcia ok, that makes sense. thanks! I'll work on this |
This reverts commit fce43a9, reversing changes made to 79a6caf.
reverts #4901
as per https://rubyforgood.slack.com/archives/G01143RQ7DG/p1688235741466369?thread_ts=1688179662.135939&cid=G01143RQ7DG