Sha256: a8f00158102f1b00805612d7df88dccb1e485c9d36ea99a99d38ff15177850ac

Contents?: true

Size: 843 Bytes

Versions: 3

Compression:

Stored size: 843 Bytes

Contents

o:$YARD::CodeObjects::MethodObject:
@tags[:@visibility:public:@signature"def verify_token(token):
@name:verify_token:@namespaceu:YARD::StubProxy$Grape::Middleware::Auth::OAuth2:@source"Gdef verify_token(token)
  if token = token_class.verify(token)
    if token.expired?
      error_out(401, 'expired_token')
    else
      if token.permission_for?(env)
        env['api.token'] = token
      else
        error_out(403, 'insufficient_scope')
      end
    end
  else
    error_out(401, 'invalid_token')
  end
end:
@dynamicT:@source_type:	ruby:@docstringIC:YARD::Docstring":@objectu;
1Grape::Middleware::Auth::OAuth2#verify_token;[:@ref_tags[:
@summary0:	@all":@line_range0:@scope:
instance:
@linei:@explicitT:@parameters[["
token0:@files[["(lib/grape/middleware/auth/oauth2.rbi:@current_file_has_commentsF

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-0.1.5 .yardoc/objects/Grape/Middleware/Auth/OAuth2/verify_token_i.dat
grape-0.1.4 .yardoc/objects/Grape/Middleware/Auth/OAuth2/verify_token_i.dat
grape-0.1.3 .yardoc/objects/Grape/Middleware/Auth/OAuth2/verify_token_i.dat