How to use the @okta/okta-sdk-nodejs.Client function in @okta/okta-sdk-nodejs

To help you get started, we’ve selected a few @okta/okta-sdk-nodejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitwarden / directory-connector / src / services / okta-directory.service.ts View on Github external
this.dirConfig = await this.configurationService.getDirectory<OktaConfiguration>(DirectoryType.Okta);
        if (this.dirConfig == null) {

        this.syncConfig = await this.configurationService.getSync();
        if (this.syncConfig == null) {

        if (this.dirConfig.orgUrl == null || this.dirConfig.token == null) {
            throw new Error(this.i18nService.t('dirConfigIncomplete'));

        this.client = new okta.Client({
            orgUrl: this.dirConfig.orgUrl,
            token: this.dirConfig.token,

        let users: UserEntry[];
        if (this.syncConfig.users) {
            users = await this.getUsers(force);

        let groups: GroupEntry[];
        if (this.syncConfig.groups) {
            const setFilter = this.createCustomSet(this.syncConfig.groupFilter);
            groups = await this.getGroups(this.forceGroup(force, users), setFilter);
            users = this.filterUsersFromGroupsSet(users, groups, setFilter);


Okta API wrapper for Node.js

Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis

Popular @okta/okta-sdk-nodejs functions

Similar packages