Skip to content

Commit

Permalink
feat: add getByToken and getByTokenAndSubject methods to token provider
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Jun 17, 2024
1 parent 7b39629 commit 26d0268
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/kotlin/co/statu/rule/token/provider/TokenProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,22 @@ class TokenProvider private constructor(
type,
jdbcPool
)

suspend fun getByTokenAndSubject(
token: String,
subject: String,
jdbcPool: JDBCPool
) = tokenDao.getByTokenAndSubject(
token,
subject,
jdbcPool
)

suspend fun getByToken(
token: String,
jdbcPool: JDBCPool
) = tokenDao.getByToken(
token,
jdbcPool
)
}

0 comments on commit 26d0268

Please sign in to comment.