No content to show
User Activity
Hi @SilasGrygier, I need to save the tokens for later access, for example, to access the Shopify APIs. We use MongoDB as data storage, so that's the way we implemented persistence.If you have other business requirements and you don't need to retrieve...
Hi @buildpath, that's the way we implemented it in NodeJS + MongoDB: app.get("/auth/callback", async (req, res) => {
try {
const session = await Shopify.Auth.validateAuthCallback(
req,
res,
req.query
);
...
FYI: we developed a solution in 2 steps, the first saves the online token, then redirects to the second endpoint. In this second step, we create the offline token and save it.
Hello Nmats, did you find a solution to get offline token? I'm trying to do the same thing but this feature is not well documented. Thanks a lot!
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
3226 | 05-17-2022 03:02 AM |