Retrieve the public profile information for the currently logged in user
x-whop-user-token
header passed to iframe apps on your backend.
How to authenticate users in other languages
x-whop-user-token
header. VerifyUserToken
is a helper function in our TS SDK that decodes the JWT token and returns the user’s ID.If are using a different framework and do not have access to the Typescript Whop SDK, you will need to implement your own JWT decoding logic. Here is an example of how to do this in Ruby on Rails: