Sign in with credentials

Authenticates a user with their credentials and returns a session including access and refresh tokens. The grant_type parameter determines the authentication method.