-
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
Added requestToken and submitTokens endpoints for mails #109
Conversation
…en error message in get/put account data endpoints. Still need to add tests
…erver. Still need to add next-link handling for matrix-identity-server and associated tests, as well as phone number handling
… if no row was matching the conditions
…siez of index.test.ts
…en error message in get/put account data endpoints. Still need to add tests
…erver. Still need to add next-link handling for matrix-identity-server and associated tests, as well as phone number handling
@@ -0,0 +1,54 @@ | |||
// TODO : Add Mailer to @twake/utils after creating a union-type Config = clientServerConfig | identityServerConfig | federatedIdentityServerConfig ... and changing to Config to the right subtype in the relevant files |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
) | ||
let initial_device_display_name | ||
if (deviceRows.length > 0) { | ||
// TODO : Refresh access tokens using refresh tokens and invalidate the previous access_token associated with the device |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
next_link?: string | ||
} | ||
|
||
// TODO : Redirect to next_link from requestToken if present |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
@@ -19,6 +19,8 @@ | |||
sid: string | |||
} | |||
|
|||
// TODO : Redirect to next_link from requestToken if present |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
…en. Added method to check if next_link is a correct URL in Utils and associated tests. Added TODO in submitToken to fill the mail Template with the right code to send back to the client
}).toString() | ||
) | ||
// set token | ||
// .replace(/__token__/g, secret) // This part is commented out for now since I don't know what the code is supposed to be TODO : Send a correct code |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
@@ -76,6 +77,8 @@ | |||
sid | |||
}).toString() | |||
) | |||
// set token | |||
// .replace(/__token__/g, secret) // This part is commented out for now since I don't know what the code is supposed to be TODO : Send a correct code |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Added endpoints for requestToken from the spec : https://spec.matrix.org/v1.11/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken
https://spec.matrix.org/v1.11/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken