Skip to content

Commit

Permalink
Merge branch 'release/v0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Dec 12, 2023
2 parents 0a7ada9 + 8d91e25 commit 0e0a8d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.1.2 (2023-12-12)
* Fixed JWT wrapper return types

## v0.1.1 (2023-12-12)
* Added date as Carbon type
* Pass Cipher payload as JWT wrapper argument
Expand Down
10 changes: 10 additions & 0 deletions src/Indoctrination/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ public function clearCache(): void

/**
* Transaction with RLS
*
* @template TReturn
* @template TPayload of CipherPayload
* @param TPayload $payload
* @param Closure(EntityManager, TPayload):TReturn $callback
* @return TReturn
*/
public function withJwt(
CipherPayload $payload,
Expand Down Expand Up @@ -272,6 +278,10 @@ public function withJwt(

/**
* Bypass RLS
*
* @template TReturn
* @param Closure(EntityManager):TReturn $callback
* @return TReturn
*/
public function bypassJwt(
Closure $callback,
Expand Down

0 comments on commit 0e0a8d5

Please sign in to comment.