What do you want to do with that? You asked for server-to-server auth. This is normally to authenticate to your own SF account.
Now if you expect to authenticate your USER account, you should consider user-agent auth or manual auth like @chris.williamson1996 suggested and explained well here: [Showcase] Manual OAuth2 Token Integration
2 Likes