get-auth-code.js 226 B

1234567891011121314
  1. Page({
  2. onLoad() {},
  3. data: {},
  4. getAuthCode: () => {
  5. my.getAuthCode({
  6. scopes: 'auth_user',
  7. success: ({ authCode }) => {
  8. my.alert({
  9. content: authCode,
  10. });
  11. },
  12. });
  13. },
  14. });