@owlmeans/server-auth-identity 0.1.10 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-meta/instructions/server-auth-identity.instructions.md +1 -1
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/server-auth-identity/SKILL.md +1 -1
- package/build/consts.d.ts +4 -0
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +14 -0
- package/build/consts.js.map +1 -1
- package/build/resource.d.ts.map +1 -1
- package/build/resource.js +4 -4
- package/build/resource.js.map +1 -1
- package/package.json +11 -11
- package/src/consts.ts +16 -0
- package/src/resource.ts +7 -4
|
@@ -7,7 +7,7 @@ applyTo: "**/context.ts, **/services/**/*.ts, **/*.ts, **/*.tsx"
|
|
|
7
7
|
# @owlmeans/server-auth-identity
|
|
8
8
|
|
|
9
9
|
**Layer:** Server
|
|
10
|
-
**Install:** `"@owlmeans/server-auth-identity": "^0.1.
|
|
10
|
+
**Install:** `"@owlmeans/server-auth-identity": "^0.1.14"` in `dependencies`
|
|
11
11
|
|
|
12
12
|
## Key Exports
|
|
13
13
|
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": "@owlmeans/server-auth-identity",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"generatedAt": "2026-
|
|
4
|
+
"version": "0.1.14",
|
|
5
|
+
"generatedAt": "2026-08-05T16:56:53.371Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
package/build/consts.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ export declare const AUTH_IDENTITY_ACCOUNT = "auth-identity:account";
|
|
|
2
2
|
export declare const AUTH_IDENTITY_PROFILE = "auth-identity:profile";
|
|
3
3
|
export declare const AUTH_IDENTITY_CREDENTIALS = "auth-identity:credentials";
|
|
4
4
|
export declare const AUTH_IDENTITY_LINKING = "auth-identity:linking";
|
|
5
|
+
export declare const AUTH_IDENTITY_ACCOUNT_COLLECTION = "account";
|
|
6
|
+
export declare const AUTH_IDENTITY_PROFILE_COLLECTION = "profile";
|
|
7
|
+
export declare const AUTH_IDENTITY_CREDENTIALS_COLLECTION = "credentials";
|
|
8
|
+
export declare const AUTH_IDENTITY_DB_ALIAS = "auth-identity";
|
|
5
9
|
export declare const LOGIN_SERVICE_PREFIX = "service";
|
|
6
10
|
export declare const EXTERNAL_KEY_DELIMITER = ":";
|
|
7
11
|
//# sourceMappingURL=consts.d.ts.map
|
package/build/consts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAC5D,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAC5D,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AACpE,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAM5D,eAAO,MAAM,gCAAgC,YAAY,CAAA;AACzD,eAAO,MAAM,gCAAgC,YAAY,CAAA;AACzD,eAAO,MAAM,oCAAoC,gBAAgB,CAAA;AAIjE,eAAO,MAAM,sBAAsB,kBAAkB,CAAA;AAGrD,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAC7C,eAAO,MAAM,sBAAsB,MAAM,CAAA"}
|
package/build/consts.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
// Resource registration aliases (used as lookup keys via ctx.resource(...)). These keep
|
|
2
|
+
// their historical colon-delimited form for backward compatibility — they are NOT the
|
|
3
|
+
// Mongo collection names. The collection names are the colon-free *_COLLECTION values
|
|
4
|
+
// below, optionally prefixed via DbConfig.resourcePrefix (see AUTH_IDENTITY_DB_ALIAS).
|
|
1
5
|
export const AUTH_IDENTITY_ACCOUNT = 'auth-identity:account';
|
|
2
6
|
export const AUTH_IDENTITY_PROFILE = 'auth-identity:profile';
|
|
3
7
|
export const AUTH_IDENTITY_CREDENTIALS = 'auth-identity:credentials';
|
|
4
8
|
export const AUTH_IDENTITY_LINKING = 'auth-identity:linking';
|
|
9
|
+
// Colon-free Mongo collection base names. The final collection name is
|
|
10
|
+
// `${resourcePrefix}${collection}` — e.g. with the project prefix 'viam-' this yields
|
|
11
|
+
// 'viam-account'. Register the identity resources against a db config that carries the
|
|
12
|
+
// desired resourcePrefix by passing AUTH_IDENTITY_DB_ALIAS to appendAuthIdentityResources.
|
|
13
|
+
export const AUTH_IDENTITY_ACCOUNT_COLLECTION = 'account';
|
|
14
|
+
export const AUTH_IDENTITY_PROFILE_COLLECTION = 'profile';
|
|
15
|
+
export const AUTH_IDENTITY_CREDENTIALS_COLLECTION = 'credentials';
|
|
16
|
+
// Suggested db-config alias for a dedicated config whose resourcePrefix scopes the
|
|
17
|
+
// collection prefix to identity collections only (not the whole database).
|
|
18
|
+
export const AUTH_IDENTITY_DB_ALIAS = 'auth-identity';
|
|
5
19
|
// Helper prefixes for stable key derivation
|
|
6
20
|
export const LOGIN_SERVICE_PREFIX = 'service';
|
|
7
21
|
export const EXTERNAL_KEY_DELIMITER = ':';
|
package/build/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAA;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAA;AAC5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,2BAA2B,CAAA;AACpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAA;AAE5D,4CAA4C;AAC5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAC7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,wFAAwF;AACxF,sFAAsF;AACtF,sFAAsF;AACtF,uFAAuF;AACvF,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAA;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAA;AAC5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,2BAA2B,CAAA;AACpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAA;AAE5D,uEAAuE;AACvE,sFAAsF;AACtF,uFAAuF;AACvF,2FAA2F;AAC3F,MAAM,CAAC,MAAM,gCAAgC,GAAG,SAAS,CAAA;AACzD,MAAM,CAAC,MAAM,gCAAgC,GAAG,SAAS,CAAA;AACzD,MAAM,CAAC,MAAM,oCAAoC,GAAG,aAAa,CAAA;AAEjE,mFAAmF;AACnF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAA;AAErD,4CAA4C;AAC5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAC7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA"}
|
package/build/resource.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,uBAAuB,EAAmB,uBAAuB,EAAuB,2BAA2B,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,uBAAuB,EAAmB,uBAAuB,EAAuB,2BAA2B,EAAE,MAAM,YAAY,CAAA;AAMtK,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,uBAQ9D,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,uBAS9D,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAI,UAAU,MAAM,KAAG,2BAOlE,CAAA"}
|
package/build/resource.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { makeMongoResource } from '@owlmeans/mongo-resource';
|
|
2
|
-
import { AUTH_IDENTITY_ACCOUNT, AUTH_IDENTITY_PROFILE, AUTH_IDENTITY_CREDENTIALS } from './consts.js';
|
|
2
|
+
import { AUTH_IDENTITY_ACCOUNT, AUTH_IDENTITY_PROFILE, AUTH_IDENTITY_CREDENTIALS, AUTH_IDENTITY_ACCOUNT_COLLECTION, AUTH_IDENTITY_PROFILE_COLLECTION, AUTH_IDENTITY_CREDENTIALS_COLLECTION } from './consts.js';
|
|
3
3
|
export const makeIdentityAccountResource = (dbAlias) => {
|
|
4
|
-
const resource = makeMongoResource(AUTH_IDENTITY_ACCOUNT, dbAlias);
|
|
4
|
+
const resource = makeMongoResource(AUTH_IDENTITY_ACCOUNT, dbAlias, undefined, undefined, AUTH_IDENTITY_ACCOUNT_COLLECTION);
|
|
5
5
|
resource.index('credential', { credential: 1 }, { unique: true });
|
|
6
6
|
resource.index('entityId', { entityId: 1 });
|
|
7
7
|
resource.index('secret', { secret: 1 }, { unique: true, sparse: true });
|
|
8
8
|
return resource;
|
|
9
9
|
};
|
|
10
10
|
export const makeIdentityProfileResource = (dbAlias) => {
|
|
11
|
-
const resource = makeMongoResource(AUTH_IDENTITY_PROFILE, dbAlias);
|
|
11
|
+
const resource = makeMongoResource(AUTH_IDENTITY_PROFILE, dbAlias, undefined, undefined, AUTH_IDENTITY_PROFILE_COLLECTION);
|
|
12
12
|
resource.index('userId', { userId: 1 });
|
|
13
13
|
resource.index('entityId', { entityId: 1 });
|
|
14
14
|
resource.index('role', { role: 1, entityId: 1 });
|
|
@@ -16,7 +16,7 @@ export const makeIdentityProfileResource = (dbAlias) => {
|
|
|
16
16
|
return resource;
|
|
17
17
|
};
|
|
18
18
|
export const makeIdentityCredentialsResource = (dbAlias) => {
|
|
19
|
-
const resource = makeMongoResource(AUTH_IDENTITY_CREDENTIALS, dbAlias);
|
|
19
|
+
const resource = makeMongoResource(AUTH_IDENTITY_CREDENTIALS, dbAlias, undefined, undefined, AUTH_IDENTITY_CREDENTIALS_COLLECTION);
|
|
20
20
|
resource.index('provider', { type: 1, userId: 1, credential: 1 }, { unique: true });
|
|
21
21
|
resource.index('profileId', { profileId: 1 });
|
|
22
22
|
return resource;
|
package/build/resource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,EACL,qBAAqB,EAAE,qBAAqB,EAAE,yBAAyB,EACvE,gCAAgC,EAAE,gCAAgC,EAAE,oCAAoC,EACzG,MAAM,aAAa,CAAA;AAEpB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,OAAgB,EAA2B,EAAE;IACvF,MAAM,QAAQ,GAAG,iBAAiB,CAChC,qBAAqB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gCAAgC,CACvF,CAAA;IACD,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;IACjE,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAA;IAC3C,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;IACvE,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,OAAgB,EAA2B,EAAE;IACvF,MAAM,QAAQ,GAAG,iBAAiB,CAChC,qBAAqB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gCAAgC,CACvF,CAAA;IACD,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAA;IACvC,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAA;IAC3C,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAA;IAChD,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1E,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,OAAgB,EAA+B,EAAE;IAC/F,MAAM,QAAQ,GAAG,iBAAiB,CAChC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,oCAAoC,CAC/F,CAAA;IACD,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;IACnF,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAA;IAC7C,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/server-auth-identity",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@owlmeans/auth": "^0.1.
|
|
26
|
-
"@owlmeans/basic-ids": "^0.1.
|
|
27
|
-
"@owlmeans/context": "^0.1.
|
|
28
|
-
"@owlmeans/mongo-resource": "^0.1.
|
|
29
|
-
"@owlmeans/oidc": "^0.1.
|
|
30
|
-
"@owlmeans/resource": "^0.1.
|
|
31
|
-
"@owlmeans/server-context": "^0.1.
|
|
25
|
+
"@owlmeans/auth": "^0.1.14",
|
|
26
|
+
"@owlmeans/basic-ids": "^0.1.14",
|
|
27
|
+
"@owlmeans/context": "^0.1.14",
|
|
28
|
+
"@owlmeans/mongo-resource": "^0.1.14",
|
|
29
|
+
"@owlmeans/oidc": "^0.1.14",
|
|
30
|
+
"@owlmeans/resource": "^0.1.14",
|
|
31
|
+
"@owlmeans/server-context": "^0.1.14"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"mongodb": "*"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@owlmeans/dep-config": "workspace:*",
|
|
38
|
-
"@types/bun": "^1.3.
|
|
39
|
-
"nodemon": "^3.1.
|
|
40
|
-
"typescript": "^6.0.
|
|
38
|
+
"@types/bun": "^1.3.14",
|
|
39
|
+
"nodemon": "^3.1.14",
|
|
40
|
+
"typescript": "^6.0.3"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
package/src/consts.ts
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
// Resource registration aliases (used as lookup keys via ctx.resource(...)). These keep
|
|
3
|
+
// their historical colon-delimited form for backward compatibility — they are NOT the
|
|
4
|
+
// Mongo collection names. The collection names are the colon-free *_COLLECTION values
|
|
5
|
+
// below, optionally prefixed via DbConfig.resourcePrefix (see AUTH_IDENTITY_DB_ALIAS).
|
|
2
6
|
export const AUTH_IDENTITY_ACCOUNT = 'auth-identity:account'
|
|
3
7
|
export const AUTH_IDENTITY_PROFILE = 'auth-identity:profile'
|
|
4
8
|
export const AUTH_IDENTITY_CREDENTIALS = 'auth-identity:credentials'
|
|
5
9
|
export const AUTH_IDENTITY_LINKING = 'auth-identity:linking'
|
|
6
10
|
|
|
11
|
+
// Colon-free Mongo collection base names. The final collection name is
|
|
12
|
+
// `${resourcePrefix}${collection}` — e.g. with the project prefix 'viam-' this yields
|
|
13
|
+
// 'viam-account'. Register the identity resources against a db config that carries the
|
|
14
|
+
// desired resourcePrefix by passing AUTH_IDENTITY_DB_ALIAS to appendAuthIdentityResources.
|
|
15
|
+
export const AUTH_IDENTITY_ACCOUNT_COLLECTION = 'account'
|
|
16
|
+
export const AUTH_IDENTITY_PROFILE_COLLECTION = 'profile'
|
|
17
|
+
export const AUTH_IDENTITY_CREDENTIALS_COLLECTION = 'credentials'
|
|
18
|
+
|
|
19
|
+
// Suggested db-config alias for a dedicated config whose resourcePrefix scopes the
|
|
20
|
+
// collection prefix to identity collections only (not the whole database).
|
|
21
|
+
export const AUTH_IDENTITY_DB_ALIAS = 'auth-identity'
|
|
22
|
+
|
|
7
23
|
// Helper prefixes for stable key derivation
|
|
8
24
|
export const LOGIN_SERVICE_PREFIX = 'service'
|
|
9
25
|
export const EXTERNAL_KEY_DELIMITER = ':'
|
package/src/resource.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { makeMongoResource } from '@owlmeans/mongo-resource'
|
|
2
2
|
import type { IdentityAccount, IdentityAccountResource, IdentityProfile, IdentityProfileResource, IdentityCredentials, IdentityCredentialsResource } from './types.js'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
AUTH_IDENTITY_ACCOUNT, AUTH_IDENTITY_PROFILE, AUTH_IDENTITY_CREDENTIALS,
|
|
5
|
+
AUTH_IDENTITY_ACCOUNT_COLLECTION, AUTH_IDENTITY_PROFILE_COLLECTION, AUTH_IDENTITY_CREDENTIALS_COLLECTION
|
|
6
|
+
} from './consts.js'
|
|
4
7
|
|
|
5
8
|
export const makeIdentityAccountResource = (dbAlias?: string): IdentityAccountResource => {
|
|
6
9
|
const resource = makeMongoResource<IdentityAccount, IdentityAccountResource>(
|
|
7
|
-
AUTH_IDENTITY_ACCOUNT, dbAlias
|
|
10
|
+
AUTH_IDENTITY_ACCOUNT, dbAlias, undefined, undefined, AUTH_IDENTITY_ACCOUNT_COLLECTION
|
|
8
11
|
)
|
|
9
12
|
resource.index('credential', { credential: 1 }, { unique: true })
|
|
10
13
|
resource.index('entityId', { entityId: 1 })
|
|
@@ -14,7 +17,7 @@ export const makeIdentityAccountResource = (dbAlias?: string): IdentityAccountRe
|
|
|
14
17
|
|
|
15
18
|
export const makeIdentityProfileResource = (dbAlias?: string): IdentityProfileResource => {
|
|
16
19
|
const resource = makeMongoResource<IdentityProfile, IdentityProfileResource>(
|
|
17
|
-
AUTH_IDENTITY_PROFILE, dbAlias
|
|
20
|
+
AUTH_IDENTITY_PROFILE, dbAlias, undefined, undefined, AUTH_IDENTITY_PROFILE_COLLECTION
|
|
18
21
|
)
|
|
19
22
|
resource.index('userId', { userId: 1 })
|
|
20
23
|
resource.index('entityId', { entityId: 1 })
|
|
@@ -25,7 +28,7 @@ export const makeIdentityProfileResource = (dbAlias?: string): IdentityProfileRe
|
|
|
25
28
|
|
|
26
29
|
export const makeIdentityCredentialsResource = (dbAlias?: string): IdentityCredentialsResource => {
|
|
27
30
|
const resource = makeMongoResource<IdentityCredentials, IdentityCredentialsResource>(
|
|
28
|
-
AUTH_IDENTITY_CREDENTIALS, dbAlias
|
|
31
|
+
AUTH_IDENTITY_CREDENTIALS, dbAlias, undefined, undefined, AUTH_IDENTITY_CREDENTIALS_COLLECTION
|
|
29
32
|
)
|
|
30
33
|
resource.index('provider', { type: 1, userId: 1, credential: 1 }, { unique: true })
|
|
31
34
|
resource.index('profileId', { profileId: 1 })
|