Answer the question
In order to leave comments, you need to log in
Authorization Oauth2 Unsplash API. How to solve error with redirect_uri?
I am making an application on nextjs, trying to implement authentication on unsplash api. I follow the official documentation .
I fill in all the request parameters, redirect_uri I specify my localhost. As a result, unsplash gives an error - The redirect uri included is not valid.
All this made me think that I need to negotiate with the unsplash team so that they allow my application to use their authentication, as it is written in the dynamic registration documentation .
Where am I making a mistake and is it possible to implement this at all?
router.push({
pathname: 'https://unsplash.com/oauth/authorize',
query: {
redirect_uri: 'http://localhost:3000/',
client_id: 'MY_CLIENT_ID',
response_type: 'code',
scope: 'public+read_user+read_photos+write_photos+write_likes+write_followers+read_collections+write_collections'
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question