Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@sanity/default-login
Advanced tools
Readme
This package is part of Sanity Studio v2, which has been superseded by Sanity Studio v3, the current major version released on Dec 7th, 2022. This package is no longer used/needed for Sanity Studio in its current version and will be retired on Dec 7th, 2023. The core packages for Sanity Studio v2 will only receive critical bug fixes until this date.
Please head over to the documentation for Sanity Studio v3 to learn more.
Let a user log into Sanity, and get access to the child content.
By default this component will ask the Sanity API and get a list of providers, which the user can login with.
However it is possible for enterprise customers to supply their own third party authentication server as a provider as well.
This is done through configuring the studio with the file ./config/@sanity/default-login.json
Example:
{
"providers": {
// Append the custom providers to the default providers or replace them.
"mode": "append", // default - or 'replace'
// If true, don't show the choose provider logo screen,
// automatically redirect to the single provider login
"redirectOnSingle": false // default
// The custom provider implementations
"entries": [
{
"name": "vandelay",
"title": "Vandelay Industries",
"url": "https://api.vandelay.industries/login",
"logo": "/static/img/vandelay.svg" // Optional, put it in the studio static folder
}
]
},
// Login method to use for the studio the studio. Can be one of:
// `dual` (default) - attempt to use cookies where possible, falling back to storing authentication token in `localStorage` otherwise
// `cookie` - explicitly disable `localStorage` method, relying only on cookies
"loginMethod": "dual"
}
<LoginWrapper>
{user => <Layout><div>{user.name} is logged in!</div></Layout>}
</LoginWrapper>
static propTypes = {
children: PropTypes.oneOfType([
PropTypes.node,
PropTypes.func
]).isRequired,
title: PropTypes.string,
description: PropTypes.string,
SanityLogo: PropTypes.func
}
static defaultProps = {
title: 'Choose login provider',
description: null,
SanityLogo: SanityStudioLogo,
}
FAQs
Lets the user log in to Sanity.
We found that @sanity/default-login demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 39 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.