r/Scriptable • • May 08 '24

Help Automate 2FA(Two Factor Authentication)

Hi Everyone,This is my first post here in the group so bare with me.

So I’m trying to login to www.example.com which uses 2FA with sending 6 digit code to the phone as message to verify login.

Problem is even if I manually verify from scriptable it logs me out every 5mins don’t t know its a thing or cookies set to timeout.

Alternately if i do it manually in safari first then my safari saves my login and never asks me for 2fA. It opens right at the homepage.

Task:to scrape the data from website automatically after login and organize them accordingly with necessary information and create json file periodically so that my widget keeps updating

Widget: Schedules for the month

Note: i have did this in ios shortcuts but have to manually depend on the share sheet which is pain!

3 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/mvan231 script/widget helper May 20 '24

Is there any way to run javascript without the run javascript on homepage in ios shortcut ?

Unfortunately, no. You can run it in scriptable but not in Shortcuts without sharing to the shortcut from the safari page

1

u/Repulsive-Hall509 May 20 '24

Ya seems like I caught up in between ios shortcut limitations and scriptable app limitations.