Authentication login api jwt in ionic 4 part 9 | Laravel API

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • 1.Create Service (authentication,auth-guard)
    2.Create Page Protected Data Need Auth
    3.Import Storage
    4.Create login page
    5.API Protect Data need authentication (You must create by yourself)
    6. Jwt Bearer
  • НаукаНаука

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

  • @kingmega8730
    @kingmega8730 3 года назад

    Thx

  • @josealvaromamanisaucedo8889
    @josealvaromamanisaucedo8889 4 года назад

    thanks bro

  • @sethsaren2702
    @sethsaren2702 Год назад

    Hi bong

  • @Amnahbrhm
    @Amnahbrhm 3 года назад

    Hello, i got this error " Class 'AuthGuardService' incorrectly implements interface 'CanActivate'.
    Property 'canActivate' is missing in type 'AuthGuardService' but required in type 'CanActivate' "
    in auth-guard service

    • @Amnahbrhm
      @Amnahbrhm 3 года назад

      I did import "import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';"
      and change the function to " canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | UrlTree | Observable | Promise {
      return this.authService.isAuthenticated();
      }"
      i'm not sure if it ok but well see

  • @josealvaromamanisaucedo8889
    @josealvaromamanisaucedo8889 4 года назад +1

    You can do Push Ionic and Laravel Notifications tutorial. ??

  • @sormanostob9391
    @sormanostob9391 Год назад

    Hi

  • @sethsaren2702
    @sethsaren2702 Год назад

    Hi