Getting publicId null from userTokenVerify

{
tokenExpiresAt: ‘2026-02-18T09:07:57Z’,
publicId: null,
userIdentifier: null,
userState: ‘VERIFIED’,
userErrors:
}
getting this result while using mutation userTokenVerify.
below is the complete request code.
verifyUserToken(req, res) {

    const payload = \`

        mutation {

            userTokenVerify(token: "${req.body.token}") {

                tokenExpiresAt

                publicId

                userIdentifier

                userState

                userErrors {

                    code

                    field

                    message

                }

            }

        }

        \`;

return new Promise((resolve, reject) => {

const options = {

method: “POST”,

headers: {

“Content-Type”: “application/graphql”,

“Authorization”: `Bearer shpmns_xzqoq2CbuDihik4RCtD8qhPYTs1ku8DP`,

“Content-Length”: Buffer.byteLength(payload),

            },

        };

const request = https.request(‘https://server.shop.app/minis/admin-api/alpha/graphql.json’, options, (res) => {

let body = “”;

res.on(“data”, (chunk) => {

body += chunk;

            });

res.on(“end”, () => {

try {

console.log(body)

const parsed = JSON.parse(body);

resolve(parsed);

                } catch (err) {

reject(err);

                }

            });

        });

request.on(“error”, (err) => {

reject(err);

        });

request.write(payload);

request.end();

    });

}

kindly suggest me where I am doing wrong.

Hi @Saurabh_Barnwal, can you share your mini handle and details of your manifest.json?

{

“name”: “shop_mini”,

“permissions”: [],

“scopes”: [ “product_list:write”, “user_settings:read”, “openid”],

“trusted_domains”: [],

“handle”: “shop_mini-aauo”

}

Hi @Saurabh_Barnwal , thanks for the details.

Currently, the openid flow is only supported for Minis that are in production, so it’ll work as expected once your Mini is submitted and released.

We are working on further improvements to the platform to support testing openid flows during development as well.