#API Authentification

1 messages · Page 1 of 1 (latest)

harsh brook
#

Does sapphire have a way to implement authentification to the api routes so that for, example, the api can only be accessed thru the bot dashboard?

coarse cloud
#

Yes, you have to define options.auth.id and options.auth.secret, and then in the route you'll be able to check for request.auth.

rich lynx
harsh brook
#

thanks widepeepoHappy1widepeepoHappy2widepeepoHappy3widepeepoHappy4widepeepoHappy5