# Chapter 18: API Authentication, Part 1

**URL:** <https://forums.kodeco.com/t/chapter-18-api-authentication-part-1/43679>\
**Category:** Server Side Swift with Vapor\
**Created:** [June 17, 2018, 8:53pm UTC](https://forums.kodeco.com/t/chapter-18-api-authentication-part-1/43679 "2018-06-17T20:53:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![freddyf](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freddyf/32/108051_2.png) [@freddyf](https://forums.kodeco.com/u/freddyf)\
**Post date:** [June 17, 2018, 8:53pm UTC](https://forums.kodeco.com/t/chapter-18-api-authentication-part-1/43679/1 "2018-06-17T20:53:05Z")

</div>

Hi !  
I reached the part “Basic Authentication” in chapter 18.  
In order to install Authenticate, I needed to do `vapor update`.  
When I run again, the project compiles, but then on every request to the database, I get the following error :

> [ERROR] PostgreSQLError.server.error.parserOpenTable: relation “User” does not exist

Can anybody tell me if I did something wrong, or if it’s a bug introduced by a new Vapor release ?

PS: byt he way, I had the same error when I took my project from chapter 17 and tried to use it for chapter 18.  
I needed to start from the starter project given with the book.

Thanks  
Fred

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [June 18, 2018, 7:04am UTC](https://forums.kodeco.com/t/chapter-18-api-authentication-part-1/43679/2 "2018-06-18T07:04:09Z")

</div>

@freddyf unfortunately the latest Fluent RC has changed the table names so you need to revert your DB and start again to make it work

---

<div class="post-metadata">

**Author:** ![freddyf](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freddyf/32/108051_2.png) [@freddyf](https://forums.kodeco.com/u/freddyf)\
**Post date:** [June 18, 2018, 7:26am UTC](https://forums.kodeco.com/t/chapter-18-api-authentication-part-1/43679/3 "2018-06-18T07:26:17Z")

</div>

Ah ok, thanks for the info.  
Do I need to wipe out the DB, or can I just pass `revert --all --yes` in the launch arguments, as you showed in chapter 18?

Thanks

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [June 18, 2018, 9:19am UTC](https://forums.kodeco.com/t/chapter-18-api-authentication-part-1/43679/4 "2018-06-18T09:19:11Z")

</div>

Both _should_ work, but if the revert command doesn’t when then reset the whole DB. I tend to do that anyway since it’s easier with Docker
