Better way to get a session user data at a new block created by Forge(create-new-block)
Better way to get a session user data at a new block created by Forge(create-new-block)
At a glance
The community member is creating a new block using Forge and wants to get the email of the logged-in user in their action file. They have tried some approaches copied from other files in the application, but encountered errors. The comments suggest that the community member won't have access to the user's email in the runner, and that they should instead add an input field to ask for the user's email manually. The community member acknowledges this and decides to use an input instead of trying to automate the process.
I'm creating a new block using forge and at my action file I want to get the email from the user who is logged. I try to get some approches copy by other files in the application, but, I've get some errors. What's the best approche in this case?