Does the set of quick start samples use the current Okta API

I am trying to recreate the sample The Lazy Developer’s Guide to Authentication with Vue.js. This article suggests the following sequence:

const OktaAuth = require('@okta/okta-auth-js')
const authClient = new OktaAuth({url: 'https://dev-751250.oktapreview.com', issuer: 'default'})

where the string 'https://dev-751250.oktapreview.com' defines the issuer’s URL. At the same time my dashboard (https://congral-admin.okta.com/admin/app/oidc_client/instance/my_audience/#tab-signon) indicates that the issuer’s URL is https://congral.okta.com.

I would assume that the API is newer than the docs - but would like to understand how are newbie users dealing with such mismatch. The quick start samples are the key enablers for new Okta customers, so rather than complaining, I would like to help the effort of “refreshing” them (assuming that such effort exists)

Self answered:

I used the admin URL (under the false impression that this is the correct one). Only hours later I discovered the page https://developer.okta.com/quickstart/#/vue/nodejs/express, which clearly indicates that my pre-created (default) issuer is defined as 'https://dev-105803.oktapreview.com/oauth2/default'.

If there is any gain from my mistake, it might indicate that the initial, top level navigation written for the very new users might require improvements.

1 Like