
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
ionic-coreo
Advanced tools
Ionic2 module for integrating with Coreo
npm install ionic-coreo --save
Update your Ionic app.module.ts:
import { CoreoModule } from 'ionic-coreo';
...
@NgModule({
imports: [CoreoModule]
...
})
export class AppModule {}
Currently not working!
import { CoreoModule, CoreoConfig } from 'ionic-coreo';
...
const coreoConfig = new CoreoConfig({
baseUrl: 'https://coreo-dev.herokuapp.com'
});
@NgModule({
imports: [
CoreoModule.forRoot(coreoConfig)
]
...
})
export class AppModule {}
The following services are provided as @Injectable()s
A thin wrapper around Ionic Native's GooglePlus and Facebook authentication. Ensure you have installed the relevant plugins and followed the configuration steps in the following documentation:
NOTE You must configure your OAuth credentials within Coreo. Go to Surveys > Your Survey > Credentials and add the relevant data.
import { CoreoAuth, CoreoAuthResult } from 'ionic-coreo';
@Component({
...
})
export class MyLoginComponent {
constructor(
private auth: CoreoAuth
) {}
login(): Promise<CoreoAuthResult> {
return this.auth.login('basic', { email: 'bob@mail.com', password: 'bob});
// OR
// const surveyId = 12;
// return this.auth.login('google', surveyId);
}
}
login(method: 'basic' | 'google' | 'facebook', params: CoreoAuthLoginOptions)logout(): void{email, password} object, else it is the surveyId you are logging in to.isLoggedIn: boolean - Flag indicating whether the user is logged in or not.id: number - User IDemail: string - Emailrole: string - RoledisplayName: string - Display NameimageUrl: string - Users' profile image URLAn HTTP client for sending queries and posting data to Coreo. Handles all authentication (if the user is logged in)
import { CoreoClient } from 'ionic-coreo';
@Injectable()
export class MyDataService {
constructor(
private client: CoreoClient
) {}
getData(): Observable<any> {
return this.client.request('/records?q=surveyId:12');
}
}
method: string - HTTP method. Defaults to 'get'headers?: any - An Object of HTTP headersbody?: string | FormData | nullauthentication?: CoreoAuthToken | false - If false, then no authentication header is set (even if the user is logged in).
If set to a CoreoAuthToken, this token will be used again regardless of the user's logged in token. If authentication is not supplied
then the user's logged in token will be used, if logged in.FAQs
Ionic2 module for integration with Coreo
The npm package ionic-coreo receives a total of 52 weekly downloads. As such, ionic-coreo popularity was classified as not popular.
We found that ionic-coreo demonstrated a not healthy version release cadence and project activity because the last version was released 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.