Skip to content

Commit

Permalink
Compatibility with Meteor 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Dec 21, 2022
1 parent bd4761d commit f82a306
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions line-oauth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 1.3.0 - 2022-12-13
* Compatibility with Meteor 2.9

## 1.2.3 - 2022-10-19
* Added missing imports into the code
* Added settings.json settings setup to README
Expand Down
4 changes: 2 additions & 2 deletions line-oauth/line_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { OAuth } from 'meteor/oauth'
const jsonwebtoken = Npm.require('jsonwebtoken');
Line = {};

OAuth.registerService('line', 2, null, query => {
const responseFunc = Meteor.wrapAsync(getAccessToken);
OAuth.registerService('line', 2, null, async (query) => {
const responseFunc = await getAccessToken(query);
const response = responseFunc(query);
const identity = getIdentity(response.id_token);
let data = {
Expand Down
4 changes: 2 additions & 2 deletions line-oauth/package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: 'storyteller:line-oauth',
summary: 'LINE OAuth flow',
version: '1.2.3',
version: '1.3.0',
git: 'https://github.com/StorytellerCZ/meteor-accounts-line'
});

Expand All @@ -10,7 +10,7 @@ Npm.depends({
});

Package.onUse(api => {
api.versionsFrom(['1.12', '2.3']);
api.versionsFrom(['2.9']);
api.use('ecmascript', ['client', 'server']);
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
Expand Down

0 comments on commit f82a306

Please sign in to comment.