-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK 'edge' branch #5
Comments
I'll be dubbed its mature release to be
|
@lllwvlvwlll @birmas Documentations along with The API comes in 2 flavours: class-based and functional-based.
// ES6
const AsteroidDomainUser = require('../dist').AsteroidDomainUser
const config = { networkType: 'stage' }
const adu = new AsteroidDomainUser(config)
// Noticed that the instance has no credential information at the moment
await adu.loginEmail('[email protected]', 'testpassword')
// Access code and refresh code are now been stored in the instance
const res = await adu.getAttributeHeadersByTypes(['name'])
// Wait for 10 minutes so that the access code expires...
// Below will work as the instance will refresh access code automatically when needed
await adu.updatePasswordJwt('newTestPassword')
// ES6
const rpc = require('../dist').rpc
const url = 'https://stage-user.asteroid.moonlight.io/rpc'
const params = {
email: '[email protected]',
password: 'testpassword',
}
const res = await rpc.user.registerEmail(url, params)
console.log('access code:', res.access_code)
console.log('refresh code:', res.refresh_code) |
This works well for me. for internal use cases, we will also need to implement the Regarding the merging of our |
All implementations are now complete in |
Do you want to merge this in so we can start using this as the default architecture? |
Not quite yet, this will happen after preliminary tests are complete. |
Per previous discussions, we will not take action regards to migrate effort of |
Examples and regression tests available on |
aligns to neo identity contract v0.3.0
Purpose of this ticket is for open discussion on feature roadmap and vision of
edge
branch ofasteroid-sdk-js
project.Overview on intentions:
vega
anddeimos
related APIsThe text was updated successfully, but these errors were encountered: