Hi, that’s a great question! In v3 of RobaseService I aim to overhaul authentication and apply better rate limiting and error handling for those.
Ideally, RobaseService could perhaps check the rules of the database in some way or another, and handle failed requests appropriately.
In the future, I suspect the API could like either of these two ways:
local RobaseService = require(path.to.robase)
local Database = RobaseService:Connect("URL"):expect()
Database.Authenticate("TOKEN"):andThen(print)
local Robase = Database:GetRobase("name", "scope")
--...
local Database = RobaseService:Connect("URL", "TOKEN"):expect()
print(Database.Authenticated)
local Robase = Database:GetRobase("name", "scope")
Long story short; authentication will be improved and handled way better. There will also be other improvements and changes in v3.0 which can be found in the github issues page