I have an issue with using the sdk func for genera...
# ask-a-descoper
a
I have an issue with using the sdk func for generating an SSO setup suite link - it generates the link and the resulting link will show up in the descope console, and when trying to navigate to the link it will redirect to
https://api.descope.com/login/<project-id>?flow=sso-config
which serves a blank screen. However, if I revoke the link and generate a new one within the descope console, the link will work as intended.
g
can you share the project ID?
@Doron Sharon - remind me please - do we have a configuration for controlling the link old SSO flow vs the S4?
d
Hi, there’s a new v2 API for generating the updated SSO Setup Suite link: https://docs.descope.com/api/management/tenants/admin-links/generate-tenant-admin-link-sso This v2 API is also used by the SDKs. @Adam Xu, which SDK are you using?
a
Using the Node.js SDK - I ended up just using the api endpoint as that worked for me
Sorry, I'm actually using the Next.js SDK v0.14.25 published 9 days ago.
d
ok, we will check that.
a
I'm looking into the actual sdk function, and it is actually pulled from the Node.js SDK, which has a 9 month old version. I'm assuming I just have to update the Node.js SDK then?
It's on version 1.6.13 as opposed to 1.7.16
d
Yes, that’s the reason, will be fixed.
a
Okay, that makes a lot of sense. So I'm just going to install the Node.js SDK as another dependency within my package.json, as the one packaged with the Next.js SDK is outdated, right?
d
Right, we will also let you know once the Node SDK will be updated.
Released.