Skip to content

Commit a7c96a0

Browse files
authored
fix (entraid): correct package entry point structure (#2917)
- last time we forgot to include `index.ts`
1 parent 0f24c7f commit a7c96a0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/entraid/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The first step to using @redis/entraid is choosing the right credentials provide
3939

4040
```typescript
4141
import { createClient } from '@redis/client';
42-
import { EntraIdCredentialsProviderFactory } from '@redis/entraid/dist/lib';
42+
import { EntraIdCredentialsProviderFactory } from '@redis/entraid';
4343

4444
const provider = EntraIdCredentialsProviderFactory.createForClientCredentials({
4545
clientId: 'your-client-id',
@@ -86,7 +86,7 @@ const provider = EntraIdCredentialsProviderFactory.createForUserAssignedManagedI
8686

8787
### DefaultAzureCredential Authentication
8888

89-
tip: see a real sample here: [samples/interactive-browser/index.ts](./samples/interactive-browser/index.ts)
89+
tip: see a real sample here: [samples/interactive-browser/index.ts](./samples/interactive-browser/index.ts)
9090

9191
The DefaultAzureCredential from @azure/identity provides a simplified authentication experience that automatically tries different authentication methods based on the environment. This is especially useful for applications that need to work in different environments (local development, CI/CD, and production).
9292

@@ -128,7 +128,7 @@ When using the `createForDefaultAzureCredential` method, you need to:
128128
2. Pass the same parameters to the factory method that you would use with the `getToken()` method:
129129
- `scopes`: The Redis scope (use the exported `REDIS_SCOPE_DEFAULT` constant)
130130
- `options`: Any additional options for the getToken method
131-
131+
132132
This factory method creates a wrapper around DefaultAzureCredential that adapts it to the Redis client's
133133
authentication system, while maintaining all the flexibility of the original Azure Identity authentication.
134134

packages/entraid/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"outDir": "./dist"
55
},
66
"include": [
7-
"./lib/**/*.ts"
7+
"./lib/**/*.ts",
8+
"./index.ts"
89
],
910
"exclude": [
1011
"./lib/**/*.spec.ts",

0 commit comments

Comments
 (0)