-
I'm writing an authorization filter using Mojolicious::Plugin::OAuth2 and a before_dispatch hook. In the hook:
And this is the auto-renew sub (see comment "### WHAT CAN I CALL HERE..." ):
Any help or pointers greatly appreciated ! Best, -- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You aren't rendering anything, so that's why it times out. have you tried something like |
Beta Was this translation helpful? Give feedback.
-
This worked:
I put this where the "### WHAT CAN I CALL HERE..." comment is and it works in my case. But this did not work:
Any ideas why? I would think that continue() would be the right call in a filter but maybe this is more like starting a new request. Does anybody know exactly why continue() doesn't work in this case? |
Beta Was this translation helpful? Give feedback.
This worked:
I put this where the "### WHAT CAN I CALL HERE..." comment is and it works in my case.
But this did not work:
Any ideas why? I would think that continue() would be the right call in a filter but maybe this is more like starting a new request. Does anybody know exactly why continue() doesn't work in this case?