@dropsh/plugin-oauth2 0.5.6 → 0.5.8

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.
@@ -12,7 +12,11 @@ function validate(config) {
12
12
  export function oauth2Plugin(config) {
13
13
  const cfg = validate(config);
14
14
  return {
15
- id: "oauth2",
15
+ // Derive the plugin id from the profile id so two profiles (e.g. session +
16
+ // pm) are distinct plugins, not collapsed by the resolver's emit-dedup.
17
+ // Provider identity stays `cfg.id` (see oauth2Provider), so profile
18
+ // selection is unchanged (DROPSH-12).
19
+ id: cfg.id ? `oauth2:${cfg.id}` : "oauth2",
16
20
  requiredModules: ["simple_oauth"],
17
21
  authProvider: oauth2Provider(cfg),
18
22
  async extendSchema(_entityType, _bundle, schema, _ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropsh/plugin-oauth2",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "type": "module",
5
5
  "main": "./dist/plugins/oauth2/src/index.js",
6
6
  "types": "./dist/plugins/oauth2/src/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "devDependencies": {
24
24
  "typescript": "^5.6.0",
25
25
  "vitest": "^4.1.8",
26
- "dropsh": "0.5.6"
26
+ "dropsh": "0.5.8"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "tsc",