Re-Authentication user on specific action

Is there any option that we re-authenticate logged in user on a specific action like making a special request, something with flow or with scripting ?