# Lookup access tokens by id when authenticating a connection · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/26dae3c04ecc9a41cb3983fc5caa829f243cc4f7)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 26dae3c04ecc9a41cb3983fc5caa829f243cc4f7

Requested commit: 26dae3c04ecc9a41cb3983fc5caa829f243cc4f7

Commit: 26dae3c04ecc9a41cb3983fc5caa829f243cc4f7

Tree: 0e27d0da3e28744afb3f973f76bc9ccd87f25685

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Lookup access tokens by id when authenticating a connection

This avoids the cost of hashing an access token multiple times,
to compare it to all known access tokens for a given user.

Co-authored-by: Antonio Scandurra <antonio@zed.dev>

```

## Parents

- [3464961aa42e03e8ab162809729f082155eacdac](https://git.cafe/gitcafe/zed/commit/3464961aa42e03e8ab162809729f082155eacdac?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/26dae3c04ecc9a41cb3983fc5caa829f243cc4f7?format=markdown)
