Code Monkey home page Code Monkey logo

Comments (4)

markbates avatar markbates commented on July 18, 2024

Typically in an app when you get the callback from a provider you would store the user in your database for look up later. Then you would probably drop a session cookie with some sort of pointer to that user for lookup later in a piece of middleware.

Since those steps are 100% unique to your application there is no "default" way to do it, which is why goth and gothic don't provide one. Once you get the callback from the provider it's up to you to do what is necessary for your application.

Hope that answers your question.

from goth.

allochi avatar allochi commented on July 18, 2024

@markbates Thanks! That's exactly what I was looking for, I wasn't sure if goth was suppose to handle the session since it create _gothic_session, and I though I was missing something.

Thanks for your replay, and thank for goth, it's amazing.

from goth.

sungwoncho avatar sungwoncho commented on July 18, 2024

@markbates I was wondering the similar thing because goth set _gothic_session cookie. What is the purpose of _gothic_session cookie?

from goth.

markbates avatar markbates commented on July 18, 2024

It holds on to information such a as which provider you are using so when you come back from the authenticating with that provider it can finish the process. Without it there would be no way of knowing that you clicked on Facebook, for example.

from goth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.