Git Product home page Git Product logo

cookbook's People

Contributors

m-thalmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cookbook's Issues

Migration of `auth_tokens` table fails

Hello Matthias!

First of all, thank you for creating this app, I re-used it for one of my project ideas :)

Could you upload latest/complete laravel migration files please? (specifically to create the auth_tokens table)

There is a migration file to add some fields to the auth_token table:
2023_08_23_180717_add_request_fields_to_auth_tokens_table.php
But there is no migration to create the table itself, and the rest of the fields that should be in the auth_table.

More details:
When run php artisan migrate it threw errors. I have noticed there is no migration to create the auth_tokens table.

At first, I created my own migration file to create the auth_tokens table, and it worked on my localhost with a demo mode (the demo account already created by seeding). However, in an empty/clean environment (no seeded data in database), when I create a new user, it throws errors about missing columns (I didn't have those columns in the migration file I created). After adding those missing columns (according to the AuthTokenSchema.php) manually in PhpMyAdmin, I was able to register a new user, however, after the re-direct to the home page, I get the Error 401 Unauthorised under categories and recipes.
Looking at the Network requests, the client uses a token which doesn't exist in the database, then calls the /refresh api endpoint, which also returns a token which doesn't exists in the auth_tokens table.

I think all of those problems exists because I have an incorrect auth_tokens schema.

Thanks in advance! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.