Check authentication on scripts