Hey, guys! We use Ory Network for the company wher...
# ory-network
f
Hey, guys! We use Ory Network for the company where I work. We are working on a mobile app. Initially we didn't implement the concept of refresh tokens in our ory implementation. We want to do it now but I don't see anything about it in the ory dashboard. Can you please tell me if this is even possible for ory network, if it supports it and if so, where do I look? Thank you!
e
f
thank you! does mobile sdk supports it?
e
Yes, all SDKs should have the API for refresh in them.
f
sorry, i'm probably missing something, but where is that api in the
@ory/client
js SDK?
oh, i see now
e
Yeah just the standard token endpoint where your post body is the refresh token.
f
thank you!
@early-magician-18981 The documentation says: “Only Authorization Code (response_type=code) and hybrid flows yield refresh tokens”. But how to get Authorization Code in a mobile native application? What are the best practices for native app? As far as I understand, to get a refresh token you need to obtain an Authorization Code, and to get the Authorization Code you need to redirect the user — but that's not possible in a native app. Am I understanding this correctly?
e
With a native app, you can use a webview to handle this.