Authentication & Session Management
OAuth2/OIDC, PKCE, refresh tokens, secure session storage, webviews vs in-app browser, biometric auth
1What is OAuth2 in the context of mobile authentication?
What is OAuth2 in the context of mobile authentication?
คำตอบ
OAuth2 is an industry-standard authorization protocol that allows mobile applications to access user resources without exposing their credentials. It works by delegating authentication to an authorization server that issues access tokens. Unlike direct authentication where the application handles passwords, OAuth2 allows users to authenticate through a third-party provider (Google, Apple, etc.) securely.
2What is the main difference between OAuth2 and OpenID Connect (OIDC)?
What is the main difference between OAuth2 and OpenID Connect (OIDC)?
คำตอบ
OAuth2 is an authorization protocol that allows obtaining access to resources, while OIDC is an identity layer built on top of OAuth2 that adds authentication. OIDC introduces the ID token which contains information about user identity (claims) in JWT format, allowing the application to know who the user is, not just that they have access to certain resources.
3What is PKCE (Proof Key for Code Exchange) and why is it essential for mobile applications?
What is PKCE (Proof Key for Code Exchange) and why is it essential for mobile applications?
คำตอบ
PKCE is an OAuth2 security extension that protects against authorization code interception attacks. It works by generating a random code_verifier on the client side, from which a code_challenge is derived and sent during the authorization request. When exchanging the code for a token, the original code_verifier is sent and verified by the server. This is crucial for mobile apps because they cannot keep a client_secret confidential.
Which OAuth2 flow is recommended for React Native mobile applications?
What is the difference between an access token and a refresh token?
+19 คำถามสัมภาษณ์
หัวข้อสัมภาษณ์ React Native อื่นๆ
JavaScript Essentials
React Fundamentals
React Native Basics
React Hooks
TypeScript for React & React Native
React Native Components & API
React Native Styling & Layout
React Native Navigation
React Native State Management
React Native Networking & API
Data Persistence
Forms & Validation
React Native Animations
Native Modules & Bridge
Platform-Specific Code
Permissions & Device APIs
Push Notifications
React Native Testing
React Native Debugging
Build & Deployment
Expo vs React Native Bare
Performance Optimization
Memory Management
Architecture Patterns
React Native New Architecture
Security Best Practices
Offline-First Architecture
React Native CI/CD
Monorepo & Code Sharing
Advanced Topics
App Lifecycle & Background Execution
Monitoring & Crash Reporting
เชี่ยวชาญ React Native สำหรับการสัมภาษณ์ครั้งถัดไป
เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์
เริ่มใช้ฟรี