React Native

Authentication & Session Management

OAuth2/OIDC, PKCE, refresh tokens, secure session storage, webviews vs in-app browser, biometric auth

22 питань зі співбесід·
Mid-Level
1

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.

2

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.

3

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.

4

Which OAuth2 flow is recommended for React Native mobile applications?

5

What is the difference between an access token and a refresh token?

+19 питань зі співбесід

Інші теми співбесід React Native

JavaScript Essentials

Junior
25 запитань

React Fundamentals

Junior
20 запитань

React Native Basics

Junior
22 запитань

React Hooks

Junior
20 запитань

TypeScript for React & React Native

Junior
22 запитань

React Native Components & API

Junior
20 запитань

React Native Styling & Layout

Junior
18 запитань

React Native Navigation

Mid-Level
22 запитань

React Native State Management

Mid-Level
24 запитань

React Native Networking & API

Mid-Level
20 запитань

Data Persistence

Mid-Level
20 запитань

Forms & Validation

Mid-Level
18 запитань

React Native Animations

Mid-Level
22 запитань

Native Modules & Bridge

Mid-Level
20 запитань

Platform-Specific Code

Mid-Level
18 запитань

Permissions & Device APIs

Mid-Level
20 запитань

Push Notifications

Mid-Level
18 запитань

React Native Testing

Mid-Level
20 запитань

React Native Debugging

Mid-Level
18 запитань

Build & Deployment

Mid-Level
20 запитань

Expo vs React Native Bare

Mid-Level
18 запитань

Performance Optimization

Senior
24 запитань

Memory Management

Senior
20 запитань

Architecture Patterns

Senior
22 запитань

React Native New Architecture

Senior
24 запитань

Security Best Practices

Senior
20 запитань

Offline-First Architecture

Senior
20 запитань

React Native CI/CD

Senior
20 запитань

Monorepo & Code Sharing

Senior
18 запитань

Advanced Topics

Senior
22 запитань

App Lifecycle & Background Execution

Mid-Level
20 запитань

Monitoring & Crash Reporting

Senior
20 запитань

Опануй React Native для наступної співбесіди

Отримай доступ до всіх питань, flashcards, технічних тестів, вправ code review та симуляторів співбесід.

Почни безкоштовно