Skip to content

Commit 99d9295

Browse files
committed
fix(api-public): read token secret (#3002)
1 parent f404037 commit 99d9295

File tree

1 file changed

+1
-1
lines changed
  • packages/core/api-public/src

1 file changed

+1
-1
lines changed

packages/core/api-public/src/ctx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl ApiCtx {
3131

3232
self.authentication_handled.store(true, Ordering::Relaxed);
3333

34-
if self.token.as_ref() == Some(&auth.admin_token) {
34+
if self.token.as_ref() == Some(auth.admin_token.read()) {
3535
Ok(())
3636
} else {
3737
Err(rivet_api_builder::ApiForbidden.build())

0 commit comments

Comments
 (0)