Skip to main content

How to get the v2 access token with correct issuer in MemberStack?

Hi Memberstack team — we’re trying to get the v2 access token (issuer https://auth.memberstack.com/app_cmluufrdb00r00srugr563spb) but we only receive the member cookie token with issuer https://api.memberstack.com.Current setup:
Can you confirm which dashboard settings must be enabled to issue the v2 access token? Is there a specific toggle or domain requirement for getMemberToken() / member.tokens.accessToken to appear?Thanks!

3 comments

  • A J
    A J

    Hey Ali Ahmad,

    Does the getMemberCookie() method mentioned in the developer docs not help you with the authentication token for your project?

    0
  • Ali Ahmad
    Ali Ahmad OP
    Hi @AJ I am already using getMemberCookie() and I get a JWT.The issue is:That token has iss: https://api.memberstack.com.
    1. I’m validating tokens on my backend with JWKS and my config expects iss: https://auth.memberstack.com/app_cmluufrdb00r00srugr563spb.
    2. Because the issuer doesn’t match, JWKS verification fails.
    What I need:
    1. Either the JWKS URL for https://api.memberstack.com so I can verify the token from getMemberCookie(),
    2. Or a way to obtain the v2 access token with iss: https://auth.memberstack.com/...
    0
  • A J
    A J

    Hey Ali Ahmad,

    I am not sure if there is a way to obtain the token via the auth issuer, but I will let Josh Lopez / Tyler Bell share if this is possible or if there is a workaround etc.

    0

Please sign in to leave a comment.

Sitemap