Add unit tests for api/auth.go

Review Request #14932 — Created March 18, 2026 and updated

Information

rb-gateway
master

Reviewers

We didn't have any unit tests for the authentication code in rb-gateway.
This change adds them.

Ran unit tests.

Summary ID
Add unit tests for api/auth.go
We didn't have any unit tests for the authentication code in rb-gateway. This change adds them. Testing Done: Ran unit tests.
unypxrltxyurynulupypvpwnxxwkzlkt
Checks run (2 succeeded)
flake8 passed.
JSHint passed.