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 Наука
Thx
thanks bro
OK
Hi bong
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
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
You can do Push Ionic and Laravel Notifications tutorial. ??
OK I will do
@@alexpetro4252 please
@@alexpetro4252 please do that tutorial Push Ionic and Laravel Notifications.
Hi
Hi