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:
- App ID: app_cmluufrdb00r00srugr563spb
- Frontend script: https://static.memberstack.com/scripts/v2/memberstack.js
- Domain: https://1a72-182-185-169-63.ngrok-free.app/
- SDK API available: no getMemberToken(), no member.tokens.accessToken in getCurrentMember()
- We can read _ms-mid / ms-mid / memberstack cookies, but those tokens have iss: https://api.memberstack.com and fail our JWKS validation.
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
Hey Ali Ahmad,
Does the getMemberCookie() method mentioned in the developer docs not help you with the authentication token for your project?
The issue is:
That token has iss: https://api.memberstack.com.
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.
Please sign in to leave a comment.