@kratzz666: Answer : I would choose based on the requirement: —— If it's my own application (Frontend + Backend) ➡️ JWT (JSON Web Token) . Why?- • Simple to implement. • Fast and stateless (server doesn't need to store sessions). • Good for APIs, web apps, and mobile apps. • Token contains user information and permissions. • Scales well for microservices. Example:- User logs in → Server generates JWT → Frontend sends JWT in every API request → Backend validates the token. —— If users need to log in using Google, Facebook, Microsoft, etc. ➡️ OAuth 2.0 Why? • Lets users authenticate using third-party providers. • More secure than storing passwords for those providers. • Users can sign in with one click. • Widely used for social login and enterprise SSO. Example: "Login with Google" → Google verifies the user → Application receives access token and user details. . ⚖️ Which to choose • Choose JWT → If your app is small, simple, and you just need basic authentication. • Choose OAuth → If your app is large, needs third‑party logins, or requires fine‑grained permissions and scalability. . #fyp #explore #trending #viral #Tech
Kratzz
Region: SG
Thursday 04 June 2026 15:27:35 GMT
Music
Download
Comments
Nick :
this is a bad question, it's like asking "what's a better way of managing interservice communication, REST or TCP?"
2026-06-05 07:02:57
24
Zile :
In JWT you can add permissions for authorization, but OAuth is for authentication via google or something else
2026-06-04 15:50:03
6
eruecco87 :
Am I allowing you to my frontend or giving you direct API access?
2026-06-07 01:38:51
1
GG :
that's a bit misleading. jwt is a data format whereas oauth2 is an architectural protocol. For fine grained permissions, we put complex authz claims inside a jwt token, so it is not that correct to say if you need fine grained permissions use oauth2. they re generally mutually exist unless you don't use simple basic token.
2026-06-05 06:32:54
10
Skibidi Toilet :
oauth2 and jwt both don't do authorization
2026-06-05 14:59:27
3
Sanjeev Maharjan :
The question sounds like "What do you prefer coding on - Vscode or Linux?"
2026-06-05 15:20:19
4
Nikolaj :
why not both? but i would use openid-connect(oidc)
2026-06-04 16:14:45
7
Azero :
My answer would be : depends on what you need
2026-06-05 12:32:30
2
Şşfödlsöflsls :
İdk, dont ask me anything
2026-06-04 15:40:53
0
treesofoakland :
Cant you use both?
2026-06-05 23:02:38
0
Nuno Fernandes :
the answer is always, “it depends”
2026-06-05 00:36:46
0
novagaming77ni 🇬🇧 🇬🇧 🇬🇧 :
U can use claims as well to store user information which will be encrypted
2026-06-05 18:34:52
0
co :
guys, it is a trick question. But, the question should add more details, specially a scenario
2026-06-05 13:41:38
0
thetricktrockman :
Claude fix this no mistakes
2026-06-05 09:10:34
0
WokoVN :
Use ChatGPT properly next time please!
2026-06-05 18:40:20
2
cafebiker :
arnt they different purposes . they armt comparable
2026-06-05 01:29:55
1
Karma Chameleon :
OAuth due to much better security features.
2026-06-05 06:29:19
0
AkoSiSuperKolokoy :
yes
2026-06-05 07:42:39
0
gerryhall3 :
lol
2026-06-07 07:37:41
0
blackjack4z :
The answer should be "they're not equivalent nor mutually exclusive"
2026-06-05 02:31:27
0
Socrates :
Both are crap.
2026-06-05 12:12:48
0
To see more videos from user @kratzz666, please go to the Tikwm
homepage.