Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Cypress authentication flows using social network providers
| Date | Stars |
|---|---|
| 2026-07-24 | 251 |
| 2026-07-25 | 251 |
| 2026-07-28 | 251 |
| 2026-07-30 | 251 |
| 2026-08-06 | 251 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<p align="center"><h1 align="center">
cypress-social-logins
</h1>
<p align="center">
cypress authentication flows using social network providers
</p>
<p align="center">
<a href="https://www.npmjs.org/package/cypress-social-logins"><img src="https://badgen.net/npm/v/cypress-social-logins" alt="npm version"/></a>
<a href="https://www.npmjs.org/package/cypress-social-logins"><img src="https://badgen.net/npm/license/cypress-social-logins" alt="license"/></a>
<a href="https://www.npmjs.org/package/cypress-social-logins"><img src="https://badgen.net/npm/dt/cypress-social-logins" alt="downloads"/></a>
<a href="https://github.com/lirantal/cypress-social-logins/actions/workflows/main.yml"><img src="https://github.com/lirantal/cypress-social-logins/actions/workflows/main.yml/badge.svg?branch=master" alt="build"/></a>
<a href="https://github.com/nodejs/security-wg/blob/master/processes/responsible_disclosure_template.md"><img src="https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg" alt="Security Responsible Disclosure" /></a>
</p>
<p align="center">
** <strong> ⚠️ DISCLAIMER and LIMITATIONS ⚠️ </strong> **
</p>
<p align="center">
<strong>This plugin doesn't work well in a CI environment</strong>, due to the anti-fraud detection mechanisms employed by the likes of Google, GitHub etc. Why? If you attempt to login from a CI machine which has different IPs, geolocation and other fingerprint identification which the account you use isn't normally attempting a login from, then this will trigger Multi Factor Authentication, CAPTCHA, or other means of confirming the identity. When those extra steps are needed, this plugin doesn't work well around them.
</p>
# About
This Cypress library makes it possible to perform third-party logins (think oauth) for services such as GitHub, Google or Facebook.
It does so by delegating the login process to a `puppeteer` flow that performs the login and returns the cookies for the application under test, so they can be set by the calling Cypress flow for the duration of the test.
## Support
Supported identity providers:
| Provider | Plugin name |
| --------- | -------------------- |
| Google | GoogleSocialLogin |
| GitHub | GitHubSocialLogin |
| Microsoft | MicrosoftSocialLogin |
| Amazon | AmazonSocialLogin |
| Facebook | FacebookSocialLogin |
| Twitter | TBD |
| LinkedIn | TBD |
# Usage
1. Call the declared task with a set of options for the social login flow interaction
2. Set the cookies for the test flow with the help of `Cypress.Cookies.defaults`
3. Copy over all or some (or none) of the local & session storage objects from puppeteer to local instance. _Note:_ If you want to persist localStorage through all tests, see [localStorage Troubleshooting](#localstorage-isnt-persisting-through-all-tests) below.
```js
cy.clearCookies()
return cy.task('GoogleSocialLogin', socialLoginOptions).then(results => {
results['cookies'].forEach(cookie => {
if (cookie.domain.includes(cookieName)) {
cy.setCookie(cookie.name, cookie.value, {
domain: cookie.domain,
expiry: cookie.expires,
httpOnly: cookie.httpOnly,
path: cookie.path,
secure: cookie.secure
})
}
})
cy.window().then(window => {
Object.keys(results.ssd).forEach(key => window.sessionStorage.setItem(key, results.ssd[key]))
Object.keys(results.lsd).forEach(key => window.localStorage.setItem(key, results.lsd[key]))
})
})
```
Options passed to the task include:
| Option name | Description | Example Excerpt of 31,386 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:3339e5020cb1f6fe, topic:testing