parent
a4a171781b
commit
a6cd97ca9a
3 changed files with 6 additions and 7 deletions
|
|
@ -55,7 +55,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
throw new ApiError(meta.errors.noSuchSession);
|
||||
}
|
||||
|
||||
// Generate access token
|
||||
const accessToken = secureRndstr(32, true);
|
||||
|
||||
// Fetch exist access token
|
||||
|
|
@ -65,7 +64,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
});
|
||||
|
||||
if (exist == null) {
|
||||
// Lookup app
|
||||
const app = await this.appsRepository.findOneByOrFail({ id: session.appId });
|
||||
|
||||
// Generate Hash
|
||||
|
|
@ -75,7 +73,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
|
||||
const now = new Date();
|
||||
|
||||
// Insert access token doc
|
||||
await this.accessTokensRepository.insert({
|
||||
id: this.idService.genId(),
|
||||
createdAt: now,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue