Angular Authentication with Laravel Sanctum

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 11

  • @kirok88
    @kirok88 29 дней назад +1

    Thankyou it was a big help

  • @DamianHealey
    @DamianHealey 5 месяцев назад +1

    Great tutorials 👍

  • @luisarturojimenezpizana9036
    @luisarturojimenezpizana9036 5 месяцев назад

    Excelentes videos

  • @thesloveniaboy123
    @thesloveniaboy123 4 месяца назад

    Is it possible to use the same Laravel API for SPA and mobile app (Angular + Ionic)?

    • @tdevclass
      @tdevclass  4 месяца назад +1

      Yes and no, no because authentication on mobile can't be the same, and yes because business logic can share the same endpoints just depends on you. You can read more on the document page laravel.com/docs/11.x/sanctum#mobile-application-authentication

    • @IgreIgrice-z3y
      @IgreIgrice-z3y 4 месяца назад

      ​@@tdevclassthat is awesome! Tnx

  • @ahajri89
    @ahajri89 6 месяцев назад

    hi thanks for the tutorial but i still get Unauthenticated error

    • @tdevclass
      @tdevclass  6 месяцев назад

      am guessing the error is coming from .evn file
      try this config in your .env
      APP_URL=localhost:8000
      FRONTEND_URL=localhost:4200
      SESSION_SECURE_COOKIE=false
      SESSION_DOMAIN=localhost
      SANCTUM_STATEFUL_DOMAINS=localhost:4200
      let me know if it works

  • @jhonrengifo-ok3fl
    @jhonrengifo-ok3fl 5 месяцев назад

    code in github?