- Image
-
- Categories
-
webdev
- Content
-
Perbedaan cookie session dan token
Cara kerja cookie
Kapan pakai cookie session storage dan loca storage
Cara kerja jwt auth
Penjelasan jwt dan oauth dari PZN
Laravel jwt auth
https://github.com/tymondesigns/jwt-auth
Laravel API Token Authentication using sanctum package
https://laravel.com/docs/11.x/sanctum#api-token-authentication
token jwt != token sanctum ya, di sisi cara kerja nya dan cara verifikasi nya, dmn klo sanctum token nya d simpan di db, klo jwt ga perlu / ga wajib simpan di db artinya opsional
Laravel SPA Authentication using sanctum package
https://laravel.com/docs/11.x/sanctum#spa-authenticating
untuk sanctum SPA itu pake pendekatan cookie based authentication -> jd setiap request dan response api nya terdapat header cookie untuk menandakan user tsb authenticated / engga
Laravel cookie based authentication
https://laravel.com/docs/11.x/authentication#authenticating-users