remove auth from token

This commit is contained in:
Asim Aslam
2021-05-02 09:57:23 +01:00
parent b8877f8312
commit ac62b8b35b
3 changed files with 8 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ func (s *Streams) Subscribe(ctx context.Context, req *pb.SubscribeRequest, strea
// find the token and check to see if it has expired
var token Token
if err := s.Cache.Get(req.Token, &token); err == store.ErrNotFound {
if err := s.Cache.Get("token:"+req.Token, &token); err == store.ErrNotFound {
return ErrInvalidToken
} else if err != nil {
logger.Errorf("Error reading token from store: %v", err)