Dosbodoke / chooselife

An open source mobile app made for Highliners
0 stars 0 forks source link

:passport_control: Integration of Clerk and tRPC enabling protected r… #34

Closed Dosbodoke closed 1 year ago

Dosbodoke commented 1 year ago

[WIP]

What is the purpose of this PR

Integrate Clerk with tRPC in order to enable protected routes

What was done to achieve

Pass the current user token trough the header Authorization and create a middleware on tRPC to validate this token.

How to test if it works?