What is the process of authenticating an application(PC/Mobile) through external browser?

I am trying to implement authentication in an application, which requires authentication to process on browser and redirect to app after successful login. Like it is used in various applications eg: Spotify. Tech. used: Electron JS, Typescript, MongoDB. I searched a lot but could not find any relevant solutions, any suggestions would be helpful.
1 Reply
ἔρως
ἔρως4w ago
you're looking for oauth2