I'm building Laravel backend to authenticate users from mobile devices. and using https://github.com/lucadegasperi/oauth2-server-laravel
Users from mobile will call /oauth/callback to get Access Token
I'm planning to use 'password' as grant type. So in that case the user will send the following: - username & password - client ID + SECRET
I feel there's something wrong in storing secret on mobile device. Is that good practice? When doing reverse engineering for and app, the secret can be detected easily.
Can anybody explain best practices when using OAuth2