On the front end I can use Javascript - not a problem - and then pass the User ID to the Rails app
r
On the front end I can use Javascript - not a problem - and then pass the User ID to the Rails app
But am I OK setting up, say a Node backend server - getting the JS to talk to this
And then my Rails app taking that User ID and just calling the Core server to verify it and get details
r
the JS on the frontend can call the rails backend with the JWT which the rails backend can verify
r
It looks like CDI's GET /recipe/user with the ID will do it
Aah OK - cheers
And it looks like the FDI is relatively simple to implement too - it's just mainly pass-throughs to the CDI?
If so, I will probably build a Rails engine that implements it, so people can embed it directly into their Rails app
r
well.. the backend SDK does a lot of things and it's not just a pass through
r
OK - I'll hold off on that one till I've looked through the other backend source (getting overexcited!)
Found it - so it's the fronttoken header - send that to Rails, which can decode it and it then knows who the user is
Perfect!
Thank you
r
It’s not the front token. Id suggest that you see our docs for using session with JWT.
r
ok