if authtoken <> '' then
Req.Headers.SetValue('authorization', 'Bearer ' + authtoken);
Module := TRemoteDBModule.Create(...); Module.UserName := ''; Module.Password := '';
Did this issue ever get resolved in published code? I have followed this thread and, based on my results, I appear to be hitting the same brick wall when it comes to JWT and RemoteDB. Each time, it gets to the same point in code the DB does not resolve, even though I have verified the creation of the User info. It is possible that I have another error, as I have deleted and recreated both the client and server pieces repeatedly. The final result is just as described in the previous posts though.
Follow up. Went back and rebuilt the apps again to ensure no lingering trial code. Same Issue BUT this time I tracked an issue with using dbGo as the db connection. The error was CoInitialize was not called when the db was attempted to be created by the server. I had the code in my server components but not when the server auto created the db again. Once I removed dbGo and replaced with a Firedac connection the db created as it should for each connection. Just thought you would like to know.
Kelvin (for Steve)