i am fairly new to slim and programming in php altogether. i’m enjoying the framework quite alot so far.
i’m sending my jwt in every response header with
that works as expected. if i add a withRedirect() or another withHeader(‘Location’ , ‘my route’) the token gets lost in space.
is there a possibility to add an array of headers to ->withHeader()? like [[‘token’, $token],[‘Location’,’my route’]]?
or maybe there is some neat other way?
thanks in advance!
ps: i followed daniel opitz’s tutorial on slim 4 - thanks alot for that. i couldn’t implement the jwtAuthentication from mika tuupola to that setup, thats why i’m running the withHeader thing for now…