grant icon indicating copy to clipboard operation
grant copied to clipboard

Is it possible to pass arbitrary data in?

Open tomkerswill opened this issue 1 year ago • 1 comments
trafficstars

Hi

I really like Grant. One use-case I have is that I'd like to pass arbitrary data into the auth URL, and have it available at the end of the process, once the user has authenticated. Is this possible to do? For example, I'd like to pass the ID of the particular login button a user pressed, and have that available in the callback.

Tom

tomkerswill avatar Dec 19 '23 12:12 tomkerswill

Any parameter that you send as querystring (GET) or url-encoded form body (POST) will be stored in the session under the grant.dynamic key and it will be available for you at the end of the OAuth flow.

simov avatar Dec 19 '23 12:12 simov