Skip to content

Lesson 5 of 6 · 7 min read

Signing In From a Mobile App: OAuth for Native Apps

A mobile app cannot keep a client secret, so OAuth treats it as a public client. RFC 8252 sets the pattern: run the login in the system browser or a platform authentication session, never an embedded WebView; receive the code on a redirect the OS verifies, such as an App Link or universal link; and protect the code with PKCE using S256. RFC 9700 adds that public clients must use PKCE and that their refresh tokens must be rotated or bound to a key, which on a phone can live in secure hardware.

Reviewed By the AISecurityInterviews editorial team
free sign-in, no card required

Practise it as an interviewer asks it

Related lessons