Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@seniorsistemas/senior-platform-data
Advanced tools
API para retornar valores dos usuários, atualmente retorna via cookies
API JavaScript para retornar valores dos usuários como token, url do serviço, dados do usuário, domínio, entre outros.
Para utilizá-la no local desejado basta fazer o import:
import { user } from "@seniorsistemas/senior-platform-data";
E após isso, chamar as funções, como por exemplo:
user.getToken().then(v => {console.log(v)});
Todas as funções são assíncronas, tendo em mente que no futuro estas informações podem ser armazenadas em outro lugar ao invés de nos cookies.
user
getAuthHeader()
- Retorna o header de autorização para ser utilizado nas requisiçõesgetToken()
- Retorna o token de acessogetUserData()
- Retorna os dados do usuáriogetRememberMe()
- Retorna o token de atualização e o tempo de expiraçãoservice
getServicesUrl()
- Retorna a url do serviçogetRestUrl()
- Retorna a url do serviço mais o sufixo restgetSoapUrl()
- Retorna a url do serviço mais o sufixo soapgetOdataUrl()
- Retorna a url do serviço mais o sufixo odatautils
getDomain()
- Retorna o domíniogetSelectedSub()
- Retorna o sub ativogetSelectedCompany()
- Retorna a empresa ativaO componente carrega automaticamente o token e servicesUrl à partir dos parâmetros passados na abertura pelo menu.
FAQs
API para retornar valores dos usuários, atualmente retorna via cookies
The npm package @seniorsistemas/senior-platform-data receives a total of 279 weekly downloads. As such, @seniorsistemas/senior-platform-data popularity was classified as not popular.
We found that @seniorsistemas/senior-platform-data demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.