Skip to content

Commit e0f9c93

Browse files
authored
Merge pull request #47 from Adrianmjim/feat/add-auth-guard
feat(auth): Add BaseSupabaseAuthGuard
2 parents 2f28cc4 + 0f014bc commit e0f9c93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ export class CatService {
218218
This library provides a base guard to authenticate requests using the Supabase auth client.
219219

220220
### Usage
221-
To use the `BaseSupabaseAuthGuard`, you need to create a subclass that implements the `extractTokenFromRequest` method. This implementation should define how to extract the token from the request, which might be in the headers, cookies, or query parameters.
221+
222+
To create your own guard that authenticates against Supabase, you just need to create a new guard that extends `BaseSupabaseAuthGuard` and implements the method `extractTokenFromRequest`. This implementation should define how to extract the token from the request, which might be in the headers, cookies, or query parameters.
222223

223224
```typescript
224225
import { Injectable, ExecutionContext } from '@nestjs/common';

0 commit comments

Comments
 (0)