Реддит при логине пользователя выдает bad request
Использую OAuth2, при перессылке пользователя на Реддит для авторизации выдает: "bad request (reddit.com) you sent an invalid request — that option is not valid."
Код ниже:
import styles from './threadtitle.css';
export function ThreadTitle() {
return (
<a
href="https://www.reddit.com/api/v1/authorize?client_id=<my-client-id>&response_type=code&
state=random&redirect_uri=http://localhost:3000&duration=permanent&scope=read submit identity"
>
<h1 className={styles.threadTitle}>Header</h1>
</a>
);
}