Hi, I try to get auth url for github provider usin...
# support-questions-legacy
j
Hi, I try to get auth url for github provider using
getAuthorisationURLWithQueryParamsAndSetState
and pass down the
authorisationURL
param. But the response url did not include the
authorisationURL
I passed, and I did not have a pre-set
authorisationURL
in my backend. Anyone knows why?
r
Hey @jokcy_
Hey @jokcy_
Can you print out the response of calling await getAuthorisationUrlWithQueryParamsAndSetState()?
j
Copy code
{
  "status": "OK",
  "url": "https://github.com/login/oauth/authorize?scope=read%3Auser+user%3Aemail&client_id=ea8155afbfe28733c982"
}
r
Hmmm. And what did you pass when you called the function?
j
Oh my bad, I suppose the redirect_uri will be append at backend so I just take a look at the http response, now I find it just being append at client side...
r
Yeaaa. It appends at client side
j
@rp_st If I want to generate some state to validate the callback url, for example generate a jwt to save the request timestamp, and if the callback url happended after 5 minutes I will treat it as timeout. The only way to implement this is to override the backend api right?
r
The frontend recipe functions would be the right thing to override for this
That being said, we do have a default expiry set anyway
j
Any document for this?
r
No docs on that yet. But feel free to inspect the frontend code in the SDK
j
OK, THX
4 Views