I would like to develop a XOJO desktop application (Windows and MacOS) that performs user authentication with Clerk (https://clerk.com) and then uses the obtained session info to call REST APIs offered by other external services.
Is there an example for this task?
I’ve never used clerk.com but I’m sure it will work like most apis and have endpoints. Which you can use URLConnection.
If you are interested, there are alternatives for handling users. Have you looked at Pocketbase? I wrote a article on using Pocketbase for authentication in Xojo here. Even if you aren’t interested, there are some URLConnection examples in there you might be able to use for clerk.com
I had a look at their docs, but I don’t see any general purpose API, just pre-built libraries. I’m certain there’s a way, but without good documentation, finding that way will be a challenge.
1 Like
There are frontend and backend APIs but the documentation is thin. See Frontend API Reference | Clerk .
1 Like